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


More than 70 dead in Austria lorry (28 Aug 2015)


Many feared dead in Libya sinkings (28 Aug 2015)


Vatican ex-envoy dies ahead of trial (28 Aug 2015)


'Great Escape' survivor dies at 101 (28 Aug 2015)


Shanghai shares end wild week down 8% (28 Aug 2015)


Facebook hits billion users in a day (27 Aug 2015)


Ghana universities 'targeted by IS' (28 Aug 2015)


Anger at Australia visa check plan (28 Aug 2015)


Estonia 'plans Russia border fence' (28 Aug 2015)


Brazil's economy enters recession (28 Aug 2015)

more »


Slashdot News for nerds, stuff that matters


German Intelligence Traded Citizen Data For NSA Surveillance Software (2015-08-28T13:39:00+00:00)


Chrome To Freeze Flash Ads On Sight From September 1 (2015-08-28T12:57:00+00:00)


Study: More Than Half of Psychological Results Can't Be Reproduced (2015-08-28T12:14:00+00:00)


Ask Slashdot: Advice On Enterprise Architect Position (2015-08-28T11:28:00+00:00)


ISRO Successfully Launches Satellite Into Geostationary Orbit (2015-08-28T09:30:00+00:00)


Ocean Cleanup Project Completes Great Pacific Garbage Patch Research Expedition (2015-08-28T07:06:00+00:00)


Inside the Booming, Unhinged, and Dangerous Malvertising Menace (2015-08-28T04:33:00+00:00)


Research Suggests How Alien Life Could Spread Across the Galaxy (2015-08-28T02:04: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)


S.F. startups are in the green when it comes to office design (28 Aug 2015)


PG&E plan would hit solar homes harder than previously thought (28 Aug 2015)


Business News Roundup, Aug. 28 (27 Aug 2015)


Apple is behind secretive Sept. 9 event at S.F. Civic Auditorium (27 Aug 2015)


Daily Briefing, Aug. 28 (27 Aug 2015)


U.S. stocks end sharply higher after Chinese market surges (27 Aug 2015)

more »


Asia Times Online


China ramps up charges against Zhou (Fri 20 Mar 2015 11:00:00 GMT)


'100 dead' in Myanmar fighting (Fri 20 Mar 2015 11:00:00 GMT)


Tunisian president vows no mercy (Fri 20 Mar 2015 11:00:00 GMT)


SPENGLER Israel's 'referendum' on 'two-state solution' (Fri 20 Mar 2015 11:00:00 GMT)


Russia, S Ossetia sign 'integration' pact (Fri 20 Mar 2015 11:00:00 GMT)


US military plunges Aquino into crisis (Fri 20 Mar 2015 11:00:00 GMT)


Rahmon celebrates Tajik democracy (Fri 20 Mar 2015 11:00:00 GMT)


THE BEAR'S LAIR Being old in 2040 no fun (Fri 20 Mar 2015 11:00:00 GMT)


China grant boosts Nepal ties (Fri 20 Mar 2015 11:00:00 GMT)

more »


Site feed Updated: 2015-Aug-28 07:00