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


Missing Russian pilot 'alive and well' (25 Nov 2015)


2015 likely to be warmest on record (25 Nov 2015)


Europe 'cannot take any more refugees' (25 Nov 2015)


Brussels metro and schools reopen (25 Nov 2015)


Chicago police release shooting dashcam (25 Nov 2015)


Shark drones to patrol Australian coast (25 Nov 2015)


Gambia bans female genital mutilation (25 Nov 2015)


Phuc Dat Bich name battle 'was a hoax' (25 Nov 2015)


Ukraine bans all Russian planes (25 Nov 2015)


Baby abandoned at NY nativity scene (25 Nov 2015)

more »


Slashdot News for nerds, stuff that matters


Engineers Nine Times More Likely Than Expected To Become Terrorists (2015-11-25T14:39:00+00:00)


Another Giant xkcd Comics Experiment (2015-11-25T13:56:00+00:00)


AMD's 'Crimson' Driver Software Released (2015-11-25T13:14:00+00:00)


Dark Matter Grows Hair Around Stars and Planets (2015-11-25T10:15:00+00:00)


Windows 10 Fall Update Uninstalls Desktop Software Without Informing Users (2015-11-25T07:10:00+00:00)


The Tamagochi Singularity Made Real: Infinite Tamagochi Living On the Internet (2015-11-25T05:09:00+00:00)


On iFixit and the Right To Repair (2015-11-25T03:05:00+00:00)


How Computer Scientists Cracked a 50-Year-Old Math Problem (2015-11-25T00:58:00+00:00)

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)


Super Bowl 50 will test Niner stadium’s techie reputation (25 Nov 2015)


Blue Origin booster rocket returns safely to Earth (24 Nov 2015)


Economy grows more than thought during 3rd quarter (24 Nov 2015)


Daily Briefing, Nov. 25 (24 Nov 2015)


Ex-Biogen head of R&D thinks small with Codiak (24 Nov 2015)


Tesla reveals prices for standard Model X SUVs (24 Nov 2015)

more »


Asia Times Online

more »


Site feed Updated: 2015-Nov-25 07:00