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

 

US threatens more Russia sanctions (23 Apr 2014)

 

Survivor's regret over ferry students (23 Apr 2014)

 

Dancer's death sparks Rio clashes (23 Apr 2014)

 

Obama pledges Japan islands support (23 Apr 2014)

 

Future of the net debated in Brazil (23 Apr 2014)

 

Cost 'no issue' in plane search (23 Apr 2014)

 

Blair warns West over radical Islam (23 Apr 2014)

 

Everest Sherpas discuss boycott (23 Apr 2014)

 

Pirates raid Malacca Straits tanker (23 Apr 2014)

 

Bomb 'kills senior Egypt policeman' (23 Apr 2014)

more »

 

Slashdot News for nerds, stuff that matters

 

How Apple's Billion Dollar Sapphire Bet Will Pay Off (2014-04-23T00:12:00Z)

 

The US Public's Erratic Acceptance of Science (2014-04-22T23:30:00Z)

 

Groove Basin: Quest For the Ultimate Music Player (2014-04-22T22:47:00Z)

 

Parents' Privacy Concerns Kill 'Personalized Learning' Initiative (2014-04-22T22:05:00Z)

 

Next-Gen Thunderbolt: Twice as Fast, But a Different Connector (2014-04-22T21:12:00Z)

 

Apple Fixes Major SSL Bug In OS X, iOS (2014-04-22T20:30:00Z)

 

NIST Removes Dual_EC_DRBG From Random Number Generator Recommendations (2014-04-22T19:49:00Z)

 

Lytro Illum Light-Field Camera Lets You Refocus Pictures Later (2014-04-22T19:07: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)

 

Cyberattacks rise - money is main target (22 Apr 2014)

 

Aereo, broadcasters face off in Supreme Court (22 Apr 2014)

 

Ship traffic for April 22 (22 Apr 2014)

 

China may let banks default when deposit insurance begins (22 Apr 2014)

 

Bearish Treasurys bet whipsaws Wall Street bond dealers (22 Apr 2014)

 

Netflix's new subscribers to pay higher rates (22 Apr 2014)

more »

 

Asia Times Online

 

Obama runs China's pivot gauntlet (22 Apr 2014)

 

Japan warns Beijing over ship seizure (22 Apr 2014)

 

Putin warns of US navy threat (22 Apr 2014)

 

JOHN PILGER Hoodwinked by the Strangelove effect (22 Apr 2014)

 

Boy made first ferry distress call (22 Apr 2014)

 

Too big to jail in the 'post-legal' US (22 Apr 2014)

 

Myanmar opposition pioneer Win Tin dies (22 Apr 2014)

 

India's women lose the election (22 Apr 2014)

 

Yue Yuen strike spreads to Jiangxi (22 Apr 2014)

 

CREDIT BUBBLE BULLETIN A surreal Yellen show (22 Apr 2014)

more »

 


Site feed Updated: 2014-Apr-23 03:00