modern web development

14
Modern Web Development Maurice de Beijer

Upload: maurice-beijer

Post on 30-Oct-2014

21 views

Category:

Documents


4 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Modern web development

Modern Web Development

Maurice de Beijer

Page 2: Modern web development

What are we going to coverHTML MarkupCascading Style SheetsJavaScriptReal Time Web

Page 3: Modern web development

Who am IMaurice de Beijer.The Problem Solver.Microsoft CSD MVP.DevelopMentor instructor.Twitter: @mauricedb of @HTML5SupportNLBlog:

http://msmvps.com/blogs/theproblemsolver/Web:http://www.HTML5Support.nlE-mail: [email protected]

Page 4: Modern web development

HTML5 Semantic markupNew HTML5 elements

<nav><section><header><footer><article><aside>

Page 5: Modern web development

Cascading Style SheetsLots of new useful CSS3 featuresPreviously they would require script or extra

markupUsing native CSS3 is much faster

Page 6: Modern web development

CSS 3Rounded corners

.box {border-radius: 10px;} Drop shadows

.box {box-shadow: 10px 5px 5px grey;} Gradients

.box {background: linear-gradient(Yellow, Lime);}Transforms

.box:hover {transform: scale(1.2);}Transitions

.box {transition: transform 1s ease-in;}

Page 7: Modern web development

CSS 3Media queries

@media screen and (max-width: 1024px) {     aside  {         display: none;     } }

Multi column textarticle {column-count: 3; }

Page 8: Modern web development

LESS/SASS = CSS done rightCSS is nice but not perfect

StaticLots of repetition

LESS and SASS try to solve these problemsDefine variablesUse mixinsNest rulesEtc.

Page 9: Modern web development

JavaScript librariesjQuery is the king!But these are many other useful ones

Underscore.jsFunctional programming support

Backbone.jsModel - View - Controller

Knockout.jsModel - View - ViewModel

Page 10: Modern web development

Unit testing JavaScriptWe need to test our code

Even more important in a dynamic languageUnit testing is a first mustMany test libraries

QUnit is used to test jQuery

Page 11: Modern web development

JavaScript is the Assembly Language

for the Web

Page 12: Modern web development

Compiling to JavaScriptThe list of languages that compile to

JavaScript is longhttps://github.com/jashkenas/coffee-script/wiki/

List-of-languages-that-compile-to-JSSome popular static ones:

Google Web ToolkitWritten in Java

Script# Written in C#

CoffeeScriptTypeScript

Page 13: Modern web development

The real time webHTML5 introduces WebSocketsSocket communication between browser and

serverFully duplexBut very low level

Several libraries build on top of thisSocket.IOSignalR

Page 14: Modern web development

ConclusionThe world of the web developer is changing

CSS3 additions mean we write less UI JavaScriptThere are many powerful frameworksLanguages like TypeScript make it easier to

write large applicationsThe real time web will make this even more

responsive

Embrace change!