tungwaiyip.info

home

about me

links

my software

Media

Yucatán Photos

St Lucia Photos

Photo Album

Videos

Blog

< May 2003 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031

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 »

 

Kontagent

Kontagent is hiring software engineers

BBC News

 

Woolwich attack victim 'was soldier' (23 May 2013)

 

French court questions IMF chief (23 May 2013)

 

Trans-US solar plane sets new record (23 May 2013)

 

Four American drone deaths confirmed (23 May 2013)

 

Universal flu jab 'edges closer' (23 May 2013)

 

Markets fall on China data, Fed (23 May 2013)

 

Congo truce declared 'for Ban visit' (23 May 2013)

 

Ford to shut Australian production (23 May 2013)

 

Bomb attack kills Pakistan police (23 May 2013)

 

Nigeria author Achebe to be buried (23 May 2013)

more »

 

Slashdot News for nerds, stuff that matters

 

3D Printers For Peace Contest (2013-05-23T00:07:00Z)

 

Intel's Linux OpenGL Driver Faster Than Apple's OS X Driver (2013-05-22T23:17:00Z)

 

Rough Roving: Curiosity's Wheels Show Damage (2013-05-22T23:08:00Z)

 

Tesla Motors Repays Government Loan 9 Years Early (2013-05-22T22:26:00Z)

 

Why the 'Star Trek Computer' Will Be Open Source and Apache Licensed (2013-05-22T21:46:00Z)

 

NYPD Detective Accused of Hiring Email Hackers (2013-05-22T21:03:00Z)

 

Scientists Find Vitamin C Kills Drug-Resistant Tuberculosis (2013-05-22T20:23:00Z)

 

German IT Firm Seeks Autistic Workers (2013-05-22T19:42: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)

 

The best personal fitness gadgets (20 May 2013)

 

State unemployment rate drops to 9 percent (17 May 2013)

 

EDD cuts back phone help to the jobless (17 May 2013)

 

Bay Area median home price hits ,000 (16 May 2013)

 

Best Bluetooth accessories (13 May 2013)

 

Fast Android gaming tablets: Cnet reviews (6 May 2013)

more »

 

Asia Times Online

 

THE ROVING EYE : And the winner is - Khamenei (22 May 2013)

 

Miles to go for Thein Sein (22 May 2013)

 

SINOGRAPH : China nears point of no return with Kim (22 May 2013)

 

New spark in the South China Sea (22 May 2013)

 

Survivors of factory collapse speak out (22 May 2013)

 

The case for hope, continued (22 May 2013)

 

SPEAKING FREELY : The sea rises in age of drone terror (22 May 2013)

 

Time Taiwan joined global air-safety body (22 May 2013)

 

Alibaba stocks up on mobile deals before share sale (22 May 2013)

more »

 


Site feed Updated: 2013-May-23 03:00