LESS CSS in Sublime Text 2

Posted in CSS, General by Marco Dias Lopes

If you haven’t tested LESS you should. LESS is not a new language or a technical replacement for CSS, it’s a way of implementing CSS as it was a more structured language. The development process is fairly simple, you write your LESS code in a LESS file that will be compiled into a CSS file that your browser can read. Before starting you’ll need two things: a syntax highlighter and a compiler.

Continue reading →

Observer or Pub/Sub pattern

Posted in JavaScript, Patterns by Marco Dias Lopes
Compatibility:

If you ever worked with YUI or Dojo frameworks, you must be familiar with this pattern, it consists on subscribing a widget’s event by supplying a method to run when the event occurs. The Observer or Pub/Sub (publish/subscribe) pattern is not new but has great effect in a language like JavaScript which is event driven.

Continue reading →