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

 

Israel and Hamas truce under way (01 Aug 2014)

 

Multiple Taiwan gas blasts kill 24 (01 Aug 2014)

 

Sudan 'apostasy' woman arrives in US (01 Aug 2014)

 

WTO fails to seal global trade deal (31 Jul 2014)

 

Hopes 'bleak' for landslide missing (01 Aug 2014)

 

DNA project 'to make UK world leader' (01 Aug 2014)

 

Xinjiang imam murder 'suspects shot' (01 Aug 2014)

 

Ebola victim heads to US hospital (01 Aug 2014)

 

US ex-governor's wife 'sought gifts' (31 Jul 2014)

 

China manufacturing growth speeds up (01 Aug 2014)

more »

 

Slashdot News for nerds, stuff that matters

 

French Provider Free Could Buy US Branch of T-Mobile (2014-08-01T00:08:00Z)

 

New Display Technology Corrects For Vision Defects (2014-07-31T23:31:00Z)

 

Passport Database Outage Leaves Thousands Stranded (2014-07-31T22:54:00Z)

 

Why TiVo's Founders Crashed and Burned With Qplay (2014-07-31T22:12:00Z)

 

HP Gives OpenVMS New Life and Path To X86 Port (2014-07-31T21:32:00Z)

 

Peter Hoddie Talks About His Internet of Things Construction Kit (Video) (2014-07-31T20:49:00Z)

 

Ask Slashdot: When Is It Better To Modify the ERP vs. Interfacing It? (2014-07-31T20:08:00Z)

 

UK Government Report Recommends Ending Online Anonymity (2014-07-31T19:29: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)

 

EBay workforce more diverse than Silicon Valley peers (31 Jul 2014)

 

Whole Foods profit rises (30 Jul 2014)

 

'Valley Girl' Jesse Draper on tech's gender problem (30 Jul 2014)

 

Time to update health exchange data to avoid tax surprises (30 Jul 2014)

 

Snapchat valued at billion in talks with Alibaba (30 Jul 2014)

 

Outsourcing scientific tests aids biotech startups (30 Jul 2014)

more »

 

Asia Times Online

 

Putin edges toward a personal Waterloo (Thu 31 Jul 2014 11:00:00 GMT)

 

THE ROVING EYE Crime (Israel) and punishment (Russia) (Thu 31 Jul 2014 11:00:00 GMT)

 

Leading Chinese iman murdered in Xinjiang (Thu 31 Jul 2014 11:00:00 GMT)

 

Is Obama really adrift in the world? (Thu 31 Jul 2014 11:00:00 GMT)

 

Vietnam buckles under Chinese pressure (Thu 31 Jul 2014 11:00:00 GMT)

 

The al-Sisi his allies can't see (Thu 31 Jul 2014 11:00:00 GMT)

 

Arab countries in land-grab strategy to secure food (Thu 31 Jul 2014 11:00:00 GMT)

 

THE BEAR'S LAIR Business and free markets (Thu 31 Jul 2014 11:00:00 GMT)

more »

 


Site feed Updated: 2014-Aug-01 00:00