Slide 1

Slide 1 text

Unless otherwise indicated, these slides are © 2013-2015 Pivotal Software, Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ SPRINGONE2GX WASHINGTON, DC Modern Frontend Engineering By Dustin Whittle @dustinwhittle

Slide 2

Slide 2 text

The web has evolved tremendously in the last decade. In this talk we will dive into the latest tools and techniques that make for a modern foundation for frontend engineering. We will start with bootstrapping with Yeoman, move into managing dependencies with bower, and finally how to automate best practices with Grunt and Gulp. We will discuss the pros and cons of modern ui toolkits like Zurb, Bootstrap, and SemanticUI and modern javascript frameworks like React, Angular, and Ember. We will highlight the latest in css frameworks, javascript frameworks, and why you should choose the right toolset for complex app or a single page app. When you leave this session you will be prepared to launch a modern web application in 2015.

Slide 3

Slide 3 text

Dus$n Whi*le • dus$nwhi*le.com • @dus$nwhi*le • San Francisco, California, USA • AppDynamics, Kwarter, SensioLabs, Yahoo!, PHPFreaks • Technologist, Traveler, Pilot, Skier, Diver, Sailor, Golfer

Slide 4

Slide 4 text

Login Flight Status Search Flight Purchase Mobile Big data SOA NOSQL Cloud Agile Web Application complexity is exploding

Slide 5

Slide 5 text

You kids have it easy! Let me explain why…

Slide 6

Slide 6 text

Let’s start with bootstrapping (you no longer have to write boilerplate)

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Automate your frontend workflows

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

npm install -g grunt-cli

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

npm install -g gulp

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Grunt and Gulp make it easy to incorporate best practices and automate the tedious parts of web development.

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

I like Gulp because it is faster and simpler. Code over configuration!

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

npm install -g bower

Slide 23

Slide 23 text

bower init

Slide 24

Slide 24 text

{ name: 'app', version: '0.0.0', authors: [ 'Dustin Whittle ' ], description: 'a demo app', main: ‘app.js', dependencies: { "jquery": "~2.x", } moduleType: [ 'es6' ], license: 'MIT', homepage: 'http://dustinwhittle.com/', ignore: [ '**/.*', 'node_modules', 'bower_components', 'test', 'tests' ] }

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

npm install -g yo

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

npm install -g yo bower grunt-cli gulp

Slide 31

Slide 31 text

npm install -g generator-webapp

Slide 32

Slide 32 text

yo webapp

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

Let's talk about frameworks

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

TodoMVC has been called many things including the 'Speed- dating' and 'Rosetta Stone' of MV* frameworks.

Slide 39

Slide 39 text

git clone https://github.com/tastejs/todomvc

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

It is not just web frameworks: standards, browser testing, email templates, server configs, analytics…

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

Performance Matters • Treat performance as a feature • Using the 14kb Rule for instant loading • Markup management • Eliminating excess AJAX calls • Working with and around application cache • Developing a responsive design + image strategy • Implementing a good touch-first strategy • Code management for good production and development experiences • Using task runners to build and deploy production code

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

npm install psi

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

The protocols are evolving • The limitations of HTTP/1.X forced us to develop various application workarounds (sharding, concatenation, spriting, inlining, etc.) to optimize performance. However, in the process we’ve also introduced numerous regressions: poor caching, unnecessary downloads, delayed execution, and more. • HTTP/2 eliminates the need for these hacks and allows us to both simplify our applications and deliver improved performance. • You should unshard, unconcat, and unsprite your assets • You should switch from inlining to server push • Read Ilya Grigorik awesome book on browser performance - http://hpbn.co/http2

Slide 80

Slide 80 text

webpagetest.org

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

Questions?

Slide 83

Slide 83 text

Find these slides on SpeakerDeck h*ps://speakerdeck.com/dus$nwhi*le

Slide 84

Slide 84 text

http://www.appdynamics.com/

Slide 85

Slide 85 text

https://speakerdeck.com/addyosmani/automating-front-end-workflow

Slide 86

Slide 86 text

Unless otherwise indicated, these slides are © 2013-2015 Pivotal Software, Inc. and licensed under a
 Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 86 Yeoman + Gulp + Bower = Frontend Automation Enjoy the rest of SpringOne2Gx. Learn More. Stay Connected. @springcentral Spring.io/video