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


North Korea marks 70th anniversary (09 Oct 2015)


Two die in two US university shootings (10 Oct 2015)


New rules for SeaWorld orca whales (09 Oct 2015)


US to abandon training new Syria rebels (09 Oct 2015)


Israeli-Palestinian violence spreads (09 Oct 2015)


Big rise in German attacks on migrants (09 Oct 2015)


IS advances on Syria's second city (09 Oct 2015)


Nobel Peace Prize for Tunisia mediators (09 Oct 2015)


Russian law 'would hide corruption' (09 Oct 2015)


Risk of new landslide in Guatemala (09 Oct 2015)

more »


Slashdot News for nerds, stuff that matters


EFF: the Final Leaked TPP Text Is All That We Feared (2015-10-10T00:10:00+00:00)


ARM Processor On a Breadboard (2015-10-09T23:26:00+00:00)


Disclosed Netgear Flaws Under Attack (2015-10-09T22:44:00+00:00)


Amazon: a Single Disaster Made Us Rethink Our Cloud Supply Chain (2015-10-09T22:01:00+00:00)


Microsoft's Mission To Reignite the PC Sector (2015-10-09T21:20:00+00:00)


NetBSD 7.0 Released (2015-10-09T20:38:00+00:00)


Linus: '2016 Will Be the Year of the ARM Laptop' (2015-10-09T19:55:00+00:00)


Researchers Say Fukushima Child Cancer Rates 20-50x Higher Than Expected (2015-10-09T19:14: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)


Amazon challenges Etsy with marketplace for handcrafted goods (9 Oct 2015)


Comcast joins Apple, Google in smart home device game (9 Oct 2015)


Lyft rolls out gas, car rental discounts for drivers (8 Oct 2015)


Daily Briefing, Oct. 9 (8 Oct 2015)


Oil companies violated state injection permits 822 times in 2014 (8 Oct 2015)


How to be an inspirational leader at work (8 Oct 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-Oct-09 18:00