Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Modular CSS and HTML5: Organize the chaos

Modular CSS and HTML5: Organize the chaos

This is a resume of my talk presented at Better Software 2012, Florence (IT). It just a quick preflight for this topic that includes lot of different technologies. It's a mix of best practices for frontend web developments, styles, file structure, tools, especially SASS.

Matteo Papadopoulos

September 27, 2012
Tweet

Other Decks in Programming

Transcript

  1. A module is a stand- alone software component, well identified

    and easily reusable programming Thursday, September 27, 12
  2. stereotype(!) too complex woody too extended twisted good points essentials

    mantianence readable reusable Thursday, September 27, 12
  3. who I am matteo papadopoulos @spleenteo front end muddle-headed ruby

    on rails / django www.cantierecreativo.net Thursday, September 27, 12
  4. Roy Tomeij / @roy All sections can start with <h1>

    Screw SEO “experts” Thursday, September 27, 12
  5. OO is made in our image and likeness don’t be

    scared discover it http://processing.org/learning/objects/ Thursday, September 27, 12
  6. God was the nerd of all nerds because he made

    ​​the universe in just six days using OO! Thursday, September 27, 12
  7. <?php ?> query.sql + functions(){ $variables + <tables> + }

    + <div style=””> + $_GLOBALS + <<<EOF + js (early 2000’s style) Thursday, September 27, 12
  8. Rails MVC model, view, controller separating db, logic & presentation

    an eye opener in 2007 Thursday, September 27, 12
  9. •variables like $white: #FFF •math like 10px + 10px =

    20px •@mixins as functions ($with_params) •logic like IF/ELSE FOR •nested classes •compiled css extended or compact SASS features Thursday, September 27, 12
  10. media queries belong to a module, so keep them within

    the same scope Thursday, September 27, 12
  11. media queries belong to a module, so keep them within

    the same scope Thursday, September 27, 12
  12. Happy ending “After having built a few hundreds of sites

    I would have discovered the “one true way” of doing it. I don’t think there is one true way” (Scalable and Modular Architecture for CSS - Jonathan Snook) Thursday, September 27, 12