Category Archives: programming

Build scripts

There seems to be some general perception, at least among Java programmers. that build scripts are scary and/or too tedious to write for yourself. I conjecture that there are two classes of people who feel this – those who have been put off by make, and those who have been put off by overuse of IDEs and feel that anything the IDE controls so completely must be hard work to do by hand.

I was certainly in the latter camp for a while, and even once I realised that build scripts weren’t scary I still thought they were hard work. I finally got around to writing my first ant script earlier (and, for bonus points, my first ant awful hack), and they’re really surprisingly easy. There’s almost nothing to it.

I really don’t know why we’re so dependent on the IDE for our build process at work. Life would be a lot simpler if we weren’t.

This entry was posted in programming and tagged , on by .

Whoops, there goes another one

Just got a letter from CMU rejecting my PhD application. Now Harvard are the only people who have yet to reject me. :-)

This entry was posted in programming and tagged on by .

Factoid of the day: Javascript command line

If you install the firebug firefox plugin, it provides you with a command line allowing you to execute arbitrary javascript in browser window in a nice friendly manner.

This entry was posted in programming and tagged , on by .

Factoid of the day – CSS trivia

The em is a unit meaning “The size of a capital M”.

In particular this is relative, so for nested elements it means “The size of a capital M in my parent element.”

What do you think happens if you have the following piece of css (which we did)?

*
{
font-size : 0.96em;
}

Which is the source of a bug in some of the YUI widgets we were using which, for reasons we didn’t previously understand, were getting extremely small text. This is now sorted. :-)

This entry was posted in programming on by .

Goto

Hm. Java byte code has a goto, and goto is already a reserved word in Java. Now that javac is open source, I wonder how much work adding goto to Java would be?

Note because it’s a good idea or anything. Simply out of pure malice. :-)

This entry was posted in programming and tagged on by .