Don’t repeat your moo

Given the Object-Oriented nature of the MooTools framework, code repetition is something that is long forgotten (or should be) in the scripts your write. With the avoidance of code repetition comes code reusability, which results in your website being easier to read, extend and maintain, and your scripts smaller in size.

At this point there’s no doubt in anyone’s mind that DRY is a principle we should stick to. However, let’s examine how to achieve this in the right way.

Continue reading

This post has 11 responses

Posted in Client side 4 months ago

Adding placeholders to inputs in Javascript

As I release my latest MooTools plugin, PlaceholderInput, that adds support for input placeholders, I decided to explain my solution, and what others are available.

An example of my implementation is seen on the Devthought sidebar, right next to this post. I’ll analyze next the different solutions that have been offered for this problem, and the upsides and downsides each has.

Continue reading

This post has 4 responses

Posted in Client side 4 months ago

BSOD comes to the Web

In my unstoppable pursuit of the best user experience scripting techniques, I decided to bring the famous BSOD to the web developers’ world.

picture-8

I came up with a document describing the projections, possibilities and capabilities of my creation, which you can access here. It includes different scenarios and variations of this implementation.

Go to the project page for download and other useful links.

This post has No responses

Posted in Client side 4 months ago

How Flash currently aids Javascript development

Most people tend to believe Javascript and Flash are meant to be rivals. However, for some important tasks, Javascript falls short and Macromedia comes to the rescue.

Let’s revise some of the most remarkable scenarios.

Continue reading

This post has 7 responses

Posted in Client side about 1 year ago