Top Banner
Windows 8 Metro Application Template How we built it. How it will help you. Steren Giannini Meetup Windows 8 2012-10-01
25

Windows 8 app template feedback

Nov 07, 2014

Download

Technology

Steren Giannini

Advice about the creation of a Windows 8 app using Javascript.
We created a content-based application template for the Joshfire Factory (http://factory.joshfire.com/)
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Windows 8 app template feedback

Windows 8 Metro Application Template

How we built it.How it will help you.

Steren Giannini Meetup Windows 82012-10-01

Page 2: Windows 8 app template feedback

Windows 8 Metro Application Template

How we built it.How it will help you.

Steren Giannini Meetup Windows 82012-10-01

Page 3: Windows 8 app template feedback

Windows StoreApplication Template

How we built it.How it will help you.

Steren Giannini Meetup Windows 82012-10-01

Page 4: Windows 8 app template feedback

@Steren

Product manager at Joshfire

Page 5: Windows 8 app template feedback

Windows Store app Template

to easily create content-based applications in Windows Store app stylesupports articles, videos and picturesfully integrated with Windows 8

Page 6: Windows 8 app template feedback

Generated App Demo

http://vimeo.com/46828771

Page 7: Windows 8 app template feedback

How we built it.(advice on building JS Windows Store apps)

Page 8: Windows 8 app template feedback

You know what the funniest thing about Windows 8 is?

It's the little differences. I mean, they got the same shit over there that we got here, but it's just...it's just, it's a

little different.

What?

Page 9: Windows 8 app template feedback

Use JS, but...

not your favorite JS libraries

Page 10: Windows 8 app template feedback

"Little" differences.

AJAX calls: only using WinJS$.ajax() WinJS.xhr()

HTML insertion: nope, use DOM manipulation$().prepend() var logo = document.createElement('img');

element.querySelector("header").appendChild(logo);

Back to the roots!

EJS templates WinJS.Binding.Template()

Page 11: Windows 8 app template feedback

but a little too much -like

use for Views, Data and Navigation(WinJS view widgets do all the work for you)

Use WinJS API

You will have to learn a new framework

well structured (Object Oriented, asynchronous)well documented

Page 12: Windows 8 app template feedback

Start from samples, not from scratch

Page 13: Windows 8 app template feedback

For every feature, look for examples and doc

http://code.msdn.microsoft.com/windowsapps/Windows-8-Modern-Style-App-Samples

Page 14: Windows 8 app template feedback

Visual Studio

Great:● auto-completion ● code check● simulator

Page 15: Windows 8 app template feedback

Visual Studio

Horrible:● DOM inspector● JS errors

○ Stacktrace is here but very often unreadable● CSS

○ change & reload, no live editing-> use Blend

Page 16: Windows 8 app template feedback

Blend

Live CSS editing but...● heavy tool, too many buttons● generated CSS not very smart

(use the UI only for tweaks)

● still need to reload the app very often

Page 17: Windows 8 app template feedback

Checklist for a great Windows Store app

● Design ● Touch, mouse, keyboard

● Offline● Snapview mode● Share sharm● Semantic Zoom● Search

Read about Windows 8 designUse SDK UI widgets

See exam

ples in SD

K

Page 18: Windows 8 app template feedback

Think about Offline mode

Handle connection lostif(Windows.Networking.Connectivity.NetworkInformation

.getInternetConnectionProfile().getNetworkConnectivityLevel() === Windows.Networking.Connectivity.NetworkConnectivityLevel.internetAccess) {

Data.update();}

Windows.Networking.Connectivity.NetworkInformation.addEventListener("networkstatuschanged", checkInternet);

Do not assume images loaduse placeholders

Do not assume your data loadsdisplay a network warning message

Page 19: Windows 8 app template feedback

IE10 vs Webkit or Geckop { width: 100%; height: 500px; -webkit-column-width:100px; column-width:100px;}

http://jsbin.com/oyajog/5

http://www.quirksmode.org/css/multicolumn.html#link5

Page 20: Windows 8 app template feedback

How it will help you.

Page 21: Windows 8 app template feedback

For content-based apps, no need to reinvent the wheel.

You use to create

blogs and simple websites.

Use the and this

template to create content-based apps for you

or your clients.

Page 23: Windows 8 app template feedback
Page 24: Windows 8 app template feedback

Questions?

Page 25: Windows 8 app template feedback

we're hiring!