pre-processing for fronteers by viking kristof houben

76
Pre-processing INCEPTION ALL OVER AGAIN!

Upload: mobile-vikings

Post on 27-Jan-2015

104 views

Category:

Technology


1 download

DESCRIPTION

On 22/6/2012 Viking Kristof Houben gave a presentation at 'Fronteers' about 'Pre-processing'. The organization 'Fronteers' wants to professionalize the job of front-end web development. It strives for the recognition and support of Dutch speaking front-end web developers. 'Fronteers' unites about 450 front-end web developers in Belgium and The Netherlands. Enjoy! 22/6/2012 Fronteers by Kristof Houben

TRANSCRIPT

Page 1: Pre-processing for Fronteers by Viking Kristof Houben

Pre-processingINCEPTION ALL OVER AGAIN!

Page 2: Pre-processing for Fronteers by Viking Kristof Houben

RIPARJAN EISING

He’s not really dead :)

Page 4: Pre-processing for Fronteers by Viking Kristof Houben

Front-end/designat Mobile Vikings

Page 5: Pre-processing for Fronteers by Viking Kristof Houben

I’m always up for a

Challenge

Page 6: Pre-processing for Fronteers by Viking Kristof Houben

Run a small firmCALLED TREESHADOW MEDIA

Page 7: Pre-processing for Fronteers by Viking Kristof Houben

Creative BrewskiTOGETHER WITH @TOMCLAUS & @DENNISJANSSEN

Page 8: Pre-processing for Fronteers by Viking Kristof Houben

LEt’s TALK

CSS

Page 9: Pre-processing for Fronteers by Viking Kristof Houben

"You don’t need a new stylesheet syntax, CSS is simple and you’re

a moron if you can’t do it."

Page 10: Pre-processing for Fronteers by Viking Kristof Houben

C’est très simple

Page 11: Pre-processing for Fronteers by Viking Kristof Houben

Not that easy to maintain

Page 12: Pre-processing for Fronteers by Viking Kristof Houben

Stylesheets evolve

Page 13: Pre-processing for Fronteers by Viking Kristof Houben

Simplicity creates complexity

Page 14: Pre-processing for Fronteers by Viking Kristof Houben

Keep things DRYDON’T REPEAT YOURSELF

Page 15: Pre-processing for Fronteers by Viking Kristof Houben

we should Reference to

existing information

Page 16: Pre-processing for Fronteers by Viking Kristof Houben

"CSS is the weakest link in the web developers toolbox. The problem goes deeper than CSS’s

lack of variables. Unlike the “function” in programming, CSS has no fundamental

building block."

Page 17: Pre-processing for Fronteers by Viking Kristof Houben

It’s all aboutAbstractions

Page 18: Pre-processing for Fronteers by Viking Kristof Houben

CSS PRIMITIVES HAVE NO MEANING

Page 19: Pre-processing for Fronteers by Viking Kristof Houben

That’s our job!

Page 20: Pre-processing for Fronteers by Viking Kristof Houben

AbstractionsARE GROUPS OF PRIMITIVES

Page 21: Pre-processing for Fronteers by Viking Kristof Houben

Abstractions are not abstract to us

Page 22: Pre-processing for Fronteers by Viking Kristof Houben

We give BUILDING BLOCKs meaning

SO IT MAKES IT EASIER FOR US TO UNDERSTAND

Page 23: Pre-processing for Fronteers by Viking Kristof Houben

Our DESIGNSCHANGE

Page 24: Pre-processing for Fronteers by Viking Kristof Houben

A kitten dies every time that happens

Page 25: Pre-processing for Fronteers by Viking Kristof Houben

Find & replaceOH PLEASE, DON’T GET ME STARTED!

Page 26: Pre-processing for Fronteers by Viking Kristof Houben

Client: “We want #000 to be #333 but not the user information underneath my

#bada55 body text, oh while you're at it could you position absolute that element and

rotate it a gazillion degrees, …

oh, #333 doesn't look that great after all…

Change it back!”

Page 27: Pre-processing for Fronteers by Viking Kristof Houben

You’re screwed

Page 28: Pre-processing for Fronteers by Viking Kristof Houben

What do we

NEED?

Page 29: Pre-processing for Fronteers by Viking Kristof Houben

The interior decorator!

Page 30: Pre-processing for Fronteers by Viking Kristof Houben

Decorates with parts

Page 31: Pre-processing for Fronteers by Viking Kristof Houben

He does not make those parts

LAMPS, TABLES, CHAIRS…

Page 32: Pre-processing for Fronteers by Viking Kristof Houben

PArts for

PArts

Page 33: Pre-processing for Fronteers by Viking Kristof Houben

Oh my god YOU REUSED A BUTTON!

Page 34: Pre-processing for Fronteers by Viking Kristof Houben

When elements are common

REUSE tHEM!

Page 35: Pre-processing for Fronteers by Viking Kristof Houben

Focus!ON WHAT IS IMPORTANT, YOU MUST!

Page 36: Pre-processing for Fronteers by Viking Kristof Houben

Hard to upgrade Customized third

party stylesheets

Page 37: Pre-processing for Fronteers by Viking Kristof Houben

Clearly we are in need of some

Pre-processing

Page 38: Pre-processing for Fronteers by Viking Kristof Houben

"In computer science, a preprocessor is a program that processes its input data to

produce output that is used as input to another program.”

— Wikipedia

Page 39: Pre-processing for Fronteers by Viking Kristof Houben

SyntacticCUSTOMIZED SYNTAX, EXTEND THE LANGUAGE, ADD

IMPROVEMENTS

Page 40: Pre-processing for Fronteers by Viking Kristof Houben

ex. SASS & LESS

Page 41: Pre-processing for Fronteers by Viking Kristof Houben

Keeping things maintainable

Page 42: Pre-processing for Fronteers by Viking Kristof Houben

SASSBY HAMPTON CATLIN & NATHAN WEIZENBAUM

Page 43: Pre-processing for Fronteers by Viking Kristof Houben

Written in Ruby

Page 44: Pre-processing for Fronteers by Viking Kristof Houben

Don’t worry, there are also GUI’s

Page 45: Pre-processing for Fronteers by Viking Kristof Houben

Watches folders & compiles on save

Page 46: Pre-processing for Fronteers by Viking Kristof Houben

2007ORIGINAL SASS SYNTAX

Page 47: Pre-processing for Fronteers by Viking Kristof Houben
Page 48: Pre-processing for Fronteers by Viking Kristof Houben

Hard to convert existing CSS TO SASS

Page 49: Pre-processing for Fronteers by Viking Kristof Houben

2010SASS 3 INTRODUCES SCSS

Page 50: Pre-processing for Fronteers by Viking Kristof Houben
Page 51: Pre-processing for Fronteers by Viking Kristof Houben

Regular CSS =

VALID SCSS

Page 52: Pre-processing for Fronteers by Viking Kristof Houben

BUT WAIT there’s also

COMPASS

Page 53: Pre-processing for Fronteers by Viking Kristof Houben

It’s chock full of the web’s best

reusable patterns.

Page 54: Pre-processing for Fronteers by Viking Kristof Houben
Page 55: Pre-processing for Fronteers by Viking Kristof Houben
Page 56: Pre-processing for Fronteers by Viking Kristof Houben

Also contains other cool featuresIMAGE SPRITING, COLOR FUNCTIONS

Page 57: Pre-processing for Fronteers by Viking Kristof Houben
Page 58: Pre-processing for Fronteers by Viking Kristof Houben
Page 59: Pre-processing for Fronteers by Viking Kristof Houben

You sayLESS

Page 60: Pre-processing for Fronteers by Viking Kristof Houben

It’s all javascriptORIGINALLY WRITTEN IN RUBY BY ALEXIS SELLIER

Page 61: Pre-processing for Fronteers by Viking Kristof Houben

Regular CSS =

VALID LESS

Page 62: Pre-processing for Fronteers by Viking Kristof Houben

LESS INSPIRED SCSS

Page 63: Pre-processing for Fronteers by Viking Kristof Houben

VSLESS

SASSThanks to Chris Eppstein - https://gist.github.com/674726

Page 64: Pre-processing for Fronteers by Viking Kristof Houben

Learning curveYOU HAVE TO KNOW JACK SH*T ABOUT THE CLI

Page 65: Pre-processing for Fronteers by Viking Kristof Houben

CODEKIT IS HOT!

Page 66: Pre-processing for Fronteers by Viking Kristof Houben

CSS3 HelpersSASS HAS COMPASS, LESS DOES NOT

Page 67: Pre-processing for Fronteers by Viking Kristof Houben

Variables

Page 68: Pre-processing for Fronteers by Viking Kristof Houben
Page 69: Pre-processing for Fronteers by Viking Kristof Houben

Mixins

Page 70: Pre-processing for Fronteers by Viking Kristof Houben

Extending

Page 71: Pre-processing for Fronteers by Viking Kristof Houben

Custom units in SASS

MAKING THE LANGUAGE MORE FUTUREPROOF

Page 72: Pre-processing for Fronteers by Viking Kristof Houben

Looping

Page 73: Pre-processing for Fronteers by Viking Kristof Houben

DEMO

Page 74: Pre-processing for Fronteers by Viking Kristof Houben

Thank you!

Page 76: Pre-processing for Fronteers by Viking Kristof Houben

Questions?