Articles in the ‘All’ Category

Optimizing MooTools builds sans Internet Explorer

Written By Arian Stolwijk, on Monday, August 13th 2012, 1:32pm

Since the very beginning of MooTools you can only pick the right components that you need with the MooTools Download Builder, to ensure there are no useless bytes going through the wires. But this means you still download browser-specific code. What if you could optimize the code further by removing unnecessary browser-specific code?

The good news is, you can optimize MooTools builds to remove specific (IE) code! Packager has been used to concatenate builds since MooTools 1.3. Removing certain code blocks, like MooTools 1.2. compatibility or specific IE code is one of the features of Packager. Lets see how it works. We begin with downloading Packager.


JavaScript Challenge #3 (Cows all the way down)

Written By Christopher Pitt, on Wednesday, August 8th 2012, 2:51am

This week we get graphical! Many people are exposed to some form of turtle drawing program when they first learn programming (or just basic computer usage and analytical thinking). It’s also a good way to develop the parts of your brain that deal with forward planning.


JavaScript Challenge #1: Review

Written By Christopher Pitt, on Wednesday, August 8th 2012, 2:50am

The first JavaScript challenge was a huge success, with many excellent entries. While there are many excellent entries, we found the following few taught us interesting and helpful lessons…


JavaScript Challenge #2 (Whac-A-Moo)

Written By Christopher Pitt, on Wednesday, August 1st 2012, 4:49am

Hopefully the first challenge got you excited for JavaScript development in a competitive environment…

One of the most common requirements of web applications is to be able to respond to user input, and in particular clicks (or touches). Continuing with our theme of element generation (and in some cases animation); this week’s challenge will be to create a basic whac-a-mole game.


JavaScript Challenge #1 (Wait, weekly?)

Written By Christopher Pitt, on Wednesday, July 25th 2012, 5:06am

The purpose of MooTools is not simply to bring syntactic sugar to JavaScript development but also to make you better at JavaScript. Often in forums and on Stack Overflow, the question will arise; “how do I do [insert UI widget] with [insert popular library]”.

The problem with these kinds of questions is that they often speak of the over-dependence on a certain framework (such as MooTools or jQuery) without a proper understanding of how JavaScript works or how to structure code well.

It is with this in mind that we want to set some challenges in plain old JavaScript (which are probably good programming challenges for any language) that will flex your grey matter.