Frontend Development - Supercharge your frontend development with little languages and smart tools

16
FRONTEND DEVELOPMENT Supercharge your frontend development with little languages and smart tools

description

Code is available here: https://github.com/davej/CorkDev.io-KCs-app and go here to see the app in action: http://davej.github.io/CorkDev.io-KCs-app/

Transcript of Frontend Development - Supercharge your frontend development with little languages and smart tools

Page 1: Frontend Development - Supercharge your frontend development with little languages and smart tools

FRONTEND DEVELOPMENTSupercharge your frontend development with little languages

and smart tools

Page 2: Frontend Development - Supercharge your frontend development with little languages and smart tools

Dave Jeffery@DaveJ

[email protected]

Freelance frontend guy.

Page 3: Frontend Development - Supercharge your frontend development with little languages and smart tools

How I like to develop

• Invest time getting the set up right

• Write descriptive code

• Use tools that are 'of' the web

Page 4: Frontend Development - Supercharge your frontend development with little languages and smart tools

#1: Coffeescript for your Javascript

• Coffeescript is just Javascript

• Minimal syntax

• Javascript: ‘The Good Parts’

Page 6: Frontend Development - Supercharge your frontend development with little languages and smart tools

COFFEESCRIPT DEMO

Page 7: Frontend Development - Supercharge your frontend development with little languages and smart tools

#2: Sass for your CSS

• Sass is just CSS

• Great mixins available, especially Bourbon & Foundation

Page 8: Frontend Development - Supercharge your frontend development with little languages and smart tools

Sass Examples 1

• Variables

• Mixins

$primary-color: #cc0000;

@include background-image(linear-gradient(-45deg, #aaa, #ccc);

Page 9: Frontend Development - Supercharge your frontend development with little languages and smart tools

Sass Examples 2

• Nesting

• Partials@import ‘_typography’;

.menu { background: #fff;

&::before { @include triangle(25px, #333, up); }

> ul { list-style: none; }}

Page 10: Frontend Development - Supercharge your frontend development with little languages and smart tools

Sass: Links

• Sass: http://sass-lang.com/

• Bourbon: http://bourbon.io/

• Compass: http://compass-style.org/

• Foundation: http://foundation.zurb.com/

• Stylus: http://learnboost.github.io/stylus/

• Less: http://lesscss.org/

Page 11: Frontend Development - Supercharge your frontend development with little languages and smart tools

Jade for your HTML

doctype htmlhtml(lang="en") head title Page Title script(type='text/javascript'). if (foo) { bar(1 + 5) } body h1 Jade - node template engine #container.col p. Jade is a terse and simple templating language with a strong focus on performance and powerful features.

Page 12: Frontend Development - Supercharge your frontend development with little languages and smart tools

AngularJS

•Two-way data binding

Page 13: Frontend Development - Supercharge your frontend development with little languages and smart tools

Angular: Links

• AngularJS: http://angularjs.org/

• Angular Classy: http://davej.github.io/angular-classy/

• Polymer: http://www.polymer-project.org/

• React: http://facebook.github.io/react/

• Ember: http://emberjs.com/

Page 14: Frontend Development - Supercharge your frontend development with little languages and smart tools

Grunt

• Automation

• Thousands of plugins

Page 15: Frontend Development - Supercharge your frontend development with little languages and smart tools

Grunt: Links

• Grunt: http://gruntjs.com/

• Makefile

• Gulp: http://gulpjs.com/

• CodeKit (Mac): https://incident57.com/codekit/

• Prepros (Windows): http://alphapixels.com/prepros/

• Write your own

Page 16: Frontend Development - Supercharge your frontend development with little languages and smart tools

DEMO