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


UN call to 'prevent Iraq massacre' (23 Aug 2014)


Iceland issues volcano red alert (23 Aug 2014)


Russian aid convoy leaves Ukraine (23 Aug 2014)


Abbas and Egypt urge new Gaza talks (23 Aug 2014)


Ivorian land border shut over Ebola (23 Aug 2014)


Galileo satellites on wrong orbit (23 Aug 2014)


Migrant boat sinks off Libyan coast (23 Aug 2014)


May pledges new anti-extremist powers (23 Aug 2014)


China film festival shut down (23 Aug 2014)


'Dozens killed' in CAR mine collapse (23 Aug 2014)

more »


Slashdot News for nerds, stuff that matters


Eruption Of Iceland's Bardarbunga Raises Travel Alert to Red (2014-08-23T18:18:00Z)


Oregon Sues Oracle For "Abysmal" Healthcare Website (2014-08-23T17:17:00Z)


It's Dumb To Tell Kids They're Smart (2014-08-23T16:20:00Z)


BBC and FACT Shut Down Doctor Who Fansite (2014-08-23T15:21:00Z)


Google Announces a New Processor For Project Ara (2014-08-23T14:24:00Z)


2 Galileo Satellites Launched To Wrong Orbit (2014-08-23T13:30:00Z)


Anomaly Triggers Self-Destruct For SpaceX Falcon 9 Test Flight (2014-08-23T12:28:00Z)


Securing Networks In the Internet of Things Era (2014-08-23T09:33: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)


Oregon countersues Oracle over failed health care website (23 Aug 2014)


Hackers could have hit over 1,000 retailers, feds warn (23 Aug 2014)


Deals only a click away for back-to-school season (23 Aug 2014)


YouTube will start charging to see music videos with no ads (23 Aug 2014)


Weak job market creates uncertainty, Yellen tells conference (23 Aug 2014)


SoftBank plans to sell billion in bonds (23 Aug 2014)

more »


Asia Times Online


Why Washington's war on terror failed (Fri 22 Aug 2014 11:00:00 GMT)


THE ROVING EYE The killer on the (Saudi) king's highway (Fri 22 Aug 2014 11:00:00 GMT)


ISIS: Caliphate or pretenders? (Fri 22 Aug 2014 11:00:00 GMT)


Delicate diplomacy for Vietnam (Fri 22 Aug 2014 11:00:00 GMT)


'Paramilitarizing' the South China Sea (Fri 22 Aug 2014 11:00:00 GMT)


SINOGRAPH Simon Leys: An appreciation (Fri 22 Aug 2014 11:00:00 GMT)


Sunni Awakening in Iraq and the future of IS (Fri 22 Aug 2014 11:00:00 GMT)


Sanctions rebound to hit Europeans (Fri 22 Aug 2014 11:00:00 GMT)


Rights before weapons for Vietnam (Fri 22 Aug 2014 11:00:00 GMT)


The American cult of bombing (Fri 22 Aug 2014 11:00:00 GMT)


Laos 'halts work' on Don Sahong dam (Fri 22 Aug 2014 11:00:00 GMT)


China still backing Lao high-speed train (Fri 22 Aug 2014 11:00:00 GMT)

more »


Site feed Updated: 2014-Aug-23 12:00