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


Battle over US Supreme Court future (14 Feb 2016)


Turkey continues assault on Syria Kurds (14 Feb 2016)


UK band Viola Beach killed in Sweden (14 Feb 2016)


Rivals trade blows in Republican debate (14 Feb 2016)


Cliffs fall in New Zealand earthquake (14 Feb 2016)


China bank chief blames 'speculators' (14 Feb 2016)


Cuba returns 'wrongly shipped' US missile (13 Feb 2016)


Hammond: EU talks will go down to wire (14 Feb 2016)


Church defends Dawkins prayer tweet (14 Feb 2016)


Afghan casualties 'reach record high' (14 Feb 2016)

more »


Slashdot News for nerds, stuff that matters


'Rogue Scientists' Could Exploit Gene Editing Technology, Experts Warn (2016-02-14T02:00:00+00:00)


Apple And AT&T Sued For Infringement Over iPhone Haptic Patents (2016-02-14T01:00:00+00:00)


US Supreme Court Justice Antonin Scalia Has Died (2016-02-14T00:00:00+00:00)


Reluctant Wikipedia Lifts Lid On .5M Internet Search Engine Project (2016-02-13T23:42:00+00:00)


Seeing Beyond The Hubris Of Facebook's Free Basics Fiasco (2016-02-13T23:00:00+00:00)


CERN Engineer Details AMD Zen Processor Confirming 32 Core Implementation, SMT (2016-02-13T22:00:00+00:00)


Would You Bet Against Sex Robots? AI 'Could Leave Half Of World Unemployed' (2016-02-13T21:00:00+00:00)


Brown CS Department Hiring Student Diversity, Inclusion Advocates (2016-02-13T20:36: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)


TV producers may start making you wait for new shows online (14 Feb 2016)


Best TVs of 2016 (so far) (14 Feb 2016)


App of the Week: Audiots (14 Feb 2016)


Skid in oil prices pulls recycling industry down (14 Feb 2016)


App of the week: Day One 2 (14 Feb 2016)


Youth video game league plugged in for 2nd season (14 Feb 2016)

more »


Asia Times Online

more »


Site feed Updated: 2016-Feb-14 07:00