Skip to content

{ Monthly Archives } November 2006

More on dynamic languages vs. tools

Ryan Dewsbury, creator of gpokr, expresses pretty concisely why he used GWT to build that fine piece of web2.0 that is gpokr. Why there aren’t any Good Tools for JavaScript – another developer who gets this simple distinction.

Thing is, javascript is equally awkard regarding tooling as other all-objects-are-maps languages, like Python and Ruby.

RatJava 2.0

It took longer than I expected, but the first ramblings to fix some minor little details on java that totally break backwards compatibility.

I have a number of pet peeves that I wish sun would just put straight into java, and a couple of others that can’t easily be done because they’d break backwards compatibility. Certainly [...]

CICE ambiguity

Wherein I post a question where the CICE-ification would be unclear. CICE proponents – how should this situation be handled?

Mapping in java: public interface MapFunction<R, T> { R function(T in); }

public class Collections { public static <R, T> Collection<R> map( Collection<T> list, MapFunction<R, T> f) { [...]

Ruby beats python?

When I looked at Python, initially, the syntax struck me as extremely clean and eminently likable. I actually like the ‘whitespace thing’. It’s the all-objects-are-really-dictionaries approach to OO that pisses me off. But, when I looked at Ruby, I didn’t like the syntax, and obviously still didn’t like the dictionary approach.

As such I always suggest [...]

Closures – yes, Java has them!

Martin Fowler suggests java doesn’t have true closures, then shows a bunch of examples. In order to try help this discussion along a bit, I’ll eliminate Fowler’s attempt at FUD and write every single one of his examples in java code. Note that aside from a bunch of lies (specifically regarding closing over lexical scope [...]

Large and Small in programming

As part of the discussion on refactoring and the more general notion of how important ’smart tools’ in general are for programming (see “Is your IDE tilting at the Dynamic Language Windmill”, a interesting post on Reg Braithwaithe’s excellent programming blog), I submit the following musing:

I like how subtext (especially the demo movie) drops [...]

Bruce Eckel: Idiot or Charlatan?

I don’t suggest you read it all, but Bruce Eckel has written a lengthy article laying down the basics (according to the gospel of Bruce Eckel, of course) of discussionsflamewars on static vs. latent typing, here.

I did read it all, and no where in that entire 20-page story does he mention or even hint at [...]

The Ola Bini challenge

A while ago Ola Bini offered a theory – refactoring of any kind is a subset of the Halting Problem.

He offers no proof except intuition, but this is interesting, because my intuition suggests this simply isn’t true.

So, here’s my challenge:

Write a java program that does not use reflection or other meta tricks (like making classes [...]

A wise lesson from Joel

Joel’s made a pretty good post about choices == headaches. He doesn’t mention macs anywhere but it’s the silent alternative to what Microsoft are Linux are doing wrong.

I have some addendums though:

On macs there is usually a convoluted (in the sense of non-obvious key modifiers and the like) way to do even more than microsoft [...]

NullPointerExceptions

I am usually logged into ##java on freenode (IRC) and in an effort not to repeat myself, I’ll write up some basic java guides here from time to time.

Today’s missive is about the NullPointerException