about me


my software


Yucatán Photos

St Lucia Photos

Photo Album



< May 2003 >
     1 2 3
4 5 6 7 8 910

past articles »

Click for San Francisco, California Forecast

San Francisco, USA


New Language Features in JDK 1.5

This slashdot posting points to an interview with Joshua Bloch on the New Language Features in JDK 1.5. Generics is a much awaited enhancement. Today, without the language support, I ask every programmer to minimally document the data type used in a comment, like

  Map userTable;   // username(String) => UserRecord

Still many people fail to do just that. I have to track down the usage of the collection to deduce what data type they are using :(

A generic declaration would be

  Map<String, UserRecord> userTable;

This seems to keep Java collection's light-weight design. It provides some compile time checking and implicit typecasting without the complexity of C++'s template. I still remember spending a lot time debugging the COMPILATION in C++. An compiler error message would spend multiple lines with long and unreadable class names decompose of a template instances...

One reader has pointed out the work on JSR 166 Concurrency Utilities led by Doug Lea. Doug Lea's book Concurrent Programming in Java and the programming library is definitive in this area. It is great that it gets formalized and included in JDK.

2003.05.09 [, ] - comments



blog comments powered by Disqus

past articles »


BBC News


Fighter jet crash in Spain kills 10 (26 Jan 2015)


Radical left takes power in Greece (26 Jan 2015)


I'd probably cheat again - Armstrong (26 Jan 2015)


Islamic State 'driven out of Kobane' (26 Jan 2015)


Snow emergency in New York City (26 Jan 2015)


Putin Ukraine remark nonsense - Nato (26 Jan 2015)


Facebook complies with Turkey block (26 Jan 2015)


Egypt doctor 'convicted in FGM case' (26 Jan 2015)


Bettencourt exploitation trial opens (26 Jan 2015)


Greek singer Demis Roussos dies (26 Jan 2015)

more »


Slashdot News for nerds, stuff that matters


"Once In a Lifetime" Asteroid Sighting Monday Night (2015-01-26T18:47:00Z)


Germany Plans Highway Test Track For Self-Driving Cars (2015-01-26T18:04:00Z)


Windows 10: Charms Bar Removed, No Start Screen For Desktops (2015-01-26T17:19:00Z)


Scientists Determine New Way To Untangle Proteins By Unboiling an Egg (2015-01-26T16:38:00Z)


Google Explains Why WebView Vulnerability Will Go Unpatched On Android 4.3 (2015-01-26T15:56:00Z)


Inside Ford's New Silicon Valley Lab (2015-01-26T15:14:00Z)


Omand Warns of "Ethically Worse" Spying If Unbreakable Encryption Is Allowed (2015-01-26T14:31:00Z)


Secret Service Investigating Small Drone On White House Grounds (2015-01-26T13:48:00Z)

more »


TechPsychic Tech Rumors and Invented News

more »


SF Gate


Bay Area News (7 Jan 2012)


City Insider (11 Feb 2012)


Crime Scene (13 Feb 2012)


C.W Newius Column (10 Jan 2012)


C.W. Nevius Blog (11 Feb 2012)


Education News (10 Jan 2012)


KALW (11 Feb 2012)


Matier and Ross Blog (11 Feb 2012)


Sling TV works for cord cutters, but won’t cut it for cable fans (26 Jan 2015)


Trading stock in private startups finally comes of age (26 Jan 2015)


Winklevoss twins seek to create regulated bitcoin exchange (25 Jan 2015)


Ship traffic, Jan. 26 (25 Jan 2015)


Great compact cameras for advanced photographers (25 Jan 2015)


App of the Week: Overcast (25 Jan 2015)

more »


Asia Times Online


Obama insists he's on course in Yemen (Mon 26 Jan 2015 11:00:00 GMT)


The Saudi palace coup (Mon 26 Jan 2015 11:00:00 GMT)


Blair turned deaf ear to warnings (Mon 26 Jan 2015 11:00:00 GMT)


Why the Teesta matters (Mon 26 Jan 2015 11:00:00 GMT)


The rich get richer (Mon 26 Jan 2015 11:00:00 GMT)


CREDIT BUBBLE BULLETIN Crisis as you sleep (Mon 26 Jan 2015 11:00:00 GMT)

more »


Site feed Updated: 2015-Jan-26 12:00