Beginning Web Design series

Paul Scrivens has started a series of mini-articles for beginning web designers, starting with Ch. 1 which points out some of the best sites to study as prime case studies for color, layout and liquid design.

Mezzoblue and hicksdesign are 2 of the best-looking blogs out there.

Python & Java comparison article

Stephen Ferg claims

A programmer can be significantly more productive in Python than in Java.

in his article “Python & Java: a Side-by-Side Comparison“. The basis of his argument centres around dynamic typing in Python, among other things like code verbosity.

Fatal incident in campus (NUS)

I just received notice via email from the NUS President that there was a fatal incident at the Faculty of Engineering this morning. It appears to be an attack of a staff member by another - the case is currently under police investigation.

I wasn’t in campus today. Hopefully it isn’t someone I know - it is still tragic nonetheless. I wonder what instigated the attack.

Update:
Read about it in the news.

foreach in Java 1.5

Joshua Bloch and Neal Gafter’s recent JavaLive chat further talks on generics and typesafe enums, 2 of the more significant new language features in the Java 1.5. There is interesting discussion on generics especially.

My favorite though is the enhanced for loop which is similar to the foreach construct in languages like PHP and Python.

The following example reads “for each Object in the Collection C…”:


void displayAll(Collection c) {
for (Object o : c)
((String)o).display();
}

I’ve always found the Java (and C/C++) for-loop idiom to be overly wordy and reduces code legibility, so this is a welcome addition.

Related links:
Previous interview with Joshua Bloch

New blog on Mozilla Firebird nightlies

Jesse Ruderman has started The Burning Edge, a blog that helps Mozilla Firebird users “decide which nightlies to use”. Finally a convenient way to find out what’s in those nightly builds.

I was so glad to see this, that I got the most recent nightly immediately:

New feature: Style Switcher in status bar on pages with alternate stylesheets

Screenshot of the Style Switcher in action:

alternate-styles.jpg

Discussion on the alternate stylesheet switcher in MozillaZine.