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 »

 

BBC News

 

Soldier killed in Canada shootings (23 Oct 2014)

 

Mexico orders Iguala mayor's arrest (22 Oct 2014)

 

Jerusalem car 'attack' kills baby (22 Oct 2014)

 

Obama 'optimistic' over Ebola in US (22 Oct 2014)

 

Syria air force 'steps up strikes' (22 Oct 2014)

 

Four guilty of Blackwater killings (22 Oct 2014)

 

Military heads admit Afghan mistakes (22 Oct 2014)

 

Microsoft to phase out Nokia name (22 Oct 2014)

 

Nasa shares free sounds from space (22 Oct 2014)

 

DNA yields secrets of human pioneer (22 Oct 2014)

more »

 

Slashdot News for nerds, stuff that matters

 

Oldest Human Genome Reveals When Our Ancestors Mixed With Neanderthals (2014-10-23T01:03:00Z)

 

Two Exocomet Families Found Around Baby Star System (2014-10-23T00:10:00Z)

 

Will the Google Car Turn Out To Be the Apple Newton of Automobiles? (2014-10-22T23:30:00Z)

 

Michigan Latest State To Ban Direct Tesla Sales (2014-10-22T22:46:00Z)

 

BitTorrent Performance Test: Sync Is Faster Than Google Drive, OneDrive, Dropbox (2014-10-22T22:03:00Z)

 

Deutsche Telecom Upgrades T-Mobile 2G Encryption In US (2014-10-22T21:25:00Z)

 

The Classic Control Panel In Windows May Be Gone (2014-10-22T20:44:00Z)

 

Judge Says EA Battlefield 4 Execs Engaged In "Puffery," Not Fraud (2014-10-22T20:04: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)

 

FCC pauses review of Comcast, AT&T deals over contract fight (22 Oct 2014)

 

Harassment a common part of online life, Pew study finds (22 Oct 2014)

 

Yahoo beats Wall Street’s sales estimates (21 Oct 2014)

 

Business news roundup, Oct. 22 (21 Oct 2014)

 

AbbVie scraps billion Shire deal on U.S. tax changes (21 Oct 2014)

 

Wearable health technology still just a novelty, report finds (21 Oct 2014)

more »

 

Asia Times Online

 

Rouhani's 'economic package' is empty (Tue 21 Oct 2014 11:00:00 GMT)

 

Low hopes for Hong Kong talks (Tue 21 Oct 2014 11:00:00 GMT)

 

Ebola and security opportunities lost (Tue 21 Oct 2014 11:00:00 GMT)

 

What could possibly go wrong? (Tue 21 Oct 2014 11:00:00 GMT)

 

Britain's phantoms of the past in Palestine (Tue 21 Oct 2014 11:00:00 GMT)

 

Pictures of life on North Korean tourist trail (Tue 21 Oct 2014 11:00:00 GMT)

 

China bids to curb mounting local debt (Tue 21 Oct 2014 11:00:00 GMT)

 

THE BEAR'S LAIR When socialism can 'work' (Tue 21 Oct 2014 11:00:00 GMT)

more »

 


Site feed Updated: 2014-Oct-22 21:00