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

 

FBI blames North Korea for Sony hack (19 Dec 2014)

 

Fifa agrees to release Garcia report (19 Dec 2014)

 

Mandy Rice-Davies dies aged 70 (19 Dec 2014)

 

Companies face 'bloodbath' in Russia (19 Dec 2014)

 

Eight children found dead in Cairns (19 Dec 2014)

 

China rules against 'gay therapy' (19 Dec 2014)

 

Kenya leader signs tough security law (19 Dec 2014)

 

Kurds 'break IS mountain siege' (19 Dec 2014)

 

Stem cell scandal scientist resigns (19 Dec 2014)

 

Apple 'deeply offended' by BBC story (19 Dec 2014)

more »

 

Slashdot News for nerds, stuff that matters

 

All the Evidence the Government Will Present In the Silk Road Trial Is Online (2014-12-19T17:25:00Z)

 

Anyone Can Now Launch Their Own Version of the Pirate Bay (2014-12-19T16:43:00Z)

 

Quantum Physics Just Got Less Complicated (2014-12-19T15:59:00Z)

 

Hackers' Shutdown of 'The Interview' Confirms Coding Is a Superpower (2014-12-19T15:16:00Z)

 

Researchers Discover SS7 Flaw, Allowing Total Access To Any Cell Phone, Anywhere (2014-12-19T14:32:00Z)

 

Skeptics Would Like Media To Stop Calling Science Deniers 'Skeptics' (2014-12-19T13:50:00Z)

 

Scientists Discover That Exercise Changes Your DNA (2014-12-19T13:07:00Z)

 

Colorado Sued By Neighboring States Over Legal Pot (2014-12-19T11:26: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)

 

Congress extending tax breaks, again (19 Dec 2014)

 

Business News Roundup, Dec. 19 (19 Dec 2014)

 

Tech industry diversity: a problem without easy solutions (18 Dec 2014)

 

Ship traffic, Dec. 19 (18 Dec 2014)

 

Mayonnaise disruptor Hampton Creek raises million (18 Dec 2014)

 

Apple CEO Tim Cook donating to gay rights campaign in South (18 Dec 2014)

more »

 

Asia Times Online

 

Netanyahu shatters Israel's image (Fri 19 Dec 2014 11:00:00 GMT)

 

Israel lends al-Nusra a hand in Syria (Fri 19 Dec 2014 11:00:00 GMT)

 

Crossroads for terror in South Asia (Fri 19 Dec 2014 11:00:00 GMT)

 

Whither Ukraine's revolution? (Fri 19 Dec 2014 11:00:00 GMT)

 

Jiangsu teachers stage protest (Fri 19 Dec 2014 11:00:00 GMT)

more »

 


Site feed Updated: 2014-Dec-19 10:00