Stupid method names and retarded conventions
Thursday, July 31st, 2003When it comes to naming conventions, the core JDK has its fair share of ludicrously chosen names. While there isn’t a horrifically large number of these, what is there is bad enough to make up for the lack of quantity in an impressive lack of quality.
One of the offenders is that Thread class. I give you…isInterrupted, and interrupted. Intuitively enough, one version of this method clears the interrupted status, the other does not. Probably more familiar is the ubiquitous System.arraycopy. Would it have killed them to uppercase the C?
Lest you think that these naming heresies are restricted to method names, we have the entirety of java.logging. What next, java.xmling? java.utiling? javax.webbing? There is also the wonderful java.nio. It isn’t non-blocking IO (based on the contents of the package), so the other alternative is the ridiculos ‘new IO’. What happens in 3 years time when the even newer IO shows up? java.enio? How about in 5 years when the novelty has worn off and there’s nothing new about the ‘new IO’?
However, the JDK’s errors aren’t so bad in the grand scheme of things. The crimes committed by other developers are far far worse. Worst of all are the C rejects, with their underscore fetish. MS morons bring in their own style of idiocy, with an insatiable lust for Hungarian Notation. Seeing mStrObj is likely to result in violent spasms for even the most battle hardened amongst us. No less evil is m_thefield, or p_myfield. Use a civilised IDE if you’re so obsessed about distinguishing fields from variables, you dinosaur.
Finally, for all you CORBA tards, I
It never ceases to amaze me how many people seem to just not ‘get’ the java naming conventions. I used to think it’s a matter of common sense and a simple logical process, turns out there’s art involved too. Who knew!