Helping Your JavaScript Compressor Along

Nicholas Zakas has some tips on optimizing your JavaScript code for compression over at the YUI blog today. It is written specifically for helping the YUI Compressor better compress your code, but general tips such as “Using constants for repeated values” are good for decreasing your file size no matter which compressor you are using.

*****

What I like about…

Two articles today in the “What I like about…” category. The first one is from Jorge Lugo on what he likes about Groovy. Nice write up pointing out some of the niceties that Groovy gives you over Java (I especially like the safe dereferencing - The Groovy docs call this Safe Navigation).

The second article is from Debasish Ghosh on why he likes Scala’s lexically scoped open classes. Enjoy!

*****

Focus!

Coding Horror has a good writeup today regarding form focus in web applications. The gist being to setup your tab indexes correctly on your forms and provide some sort of focus information to the user yourself. The only browser that helps provide any sort of focus feedback to the user for you is Safari. This is another article of sage advice on something that even major websites still get wrong.

*****