Web Developers Are Stupid

Posted by Sean on Aug 20, 2009 under

Web development has become increasingly popular.  Does that make it easy? Does that make us dumb?

Certainly, as Michael Braude says, the barrier to web development is incredibly low. HTML can be learned in a couple hours.  A couple more and you can make something "just work" in Javascript. As a web programmer, I never have to worry about 3D rendering, rarely do I ever have to care about threading, writing to disk is taken care of for me by SQL.  The problems we're trying to solve usually aren't so astronomical to need an ingenious algorithm designed.

One-Time Custom MooTools Events

Posted by Sean on Aug 17, 2009 under

MooTools lets you listen to events from 2 mediums: Elements and Classes. From classes, you can fire any event you want, and listen for it elsewhere. But with Elements, events are usually tied towards native DOM events. MooTools gives you the ability to define custom events for elements, by adding an entry to Element.Events .

With this in mind, we will consolidate the process of keeping track of one-time events in our custom event.

As I continue to flesh out my MooTools MVC framework, I found a neat way to implement a templating system, using only what MooTools gives me. The goal of templating systems is to allow you to write in your target format (usually HTML), and denote where variables should be tied in.

var example = 'My name is {name}.  I love {passion}';

...