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

 

Ukraine rebels to get self-rule (16 Sep 2014)

 

UN calls for to fight Ebola (16 Sep 2014)

 

Campaigns seize on Scotland pledge (16 Sep 2014)

 

US advisers 'may join attacks on IS' (16 Sep 2014)

 

Rob Ford says he is 'pretty sick' (16 Sep 2014)

 

French PM faces confidence vote (16 Sep 2014)

 

CCTV released in Thai murder hunt (16 Sep 2014)

 

Climate change remedies 'affordable' (16 Sep 2014)

 

Deadly shooting at Copenhagen court (16 Sep 2014)

 

Nato troops killed in Kabul bombing (16 Sep 2014)

more »

 

Slashdot News for nerds, stuff that matters

 

Tim Cook Says Apple Can't Read Users' Emails, That iCloud Wasn't Hacked (2014-09-16T16:20:00Z)

 

Quickflix Wants Netflix To Drop Australian VPN Users (2014-09-16T15:38:00Z)

 

Say Goodbye To That Unwanted U2 Album (2014-09-16T15:13:00Z)

 

Browser To Facilitate Text Browsing In Emergencies (2014-09-16T14:57:00Z)

 

New Release of MINIX 3 For X86 and ARM Is NetBSD Compatible (2014-09-16T14:15:00Z)

 

WSJ Reports Boeing To Beat SpaceX For Manned Taxi To ISS (2014-09-16T13:34:00Z)

 

Industry-Based ToDo Alliance Wants To Guide FOSS Development (2014-09-16T12:53:00Z)

 

AT&T Proposes Net Neutrality Compromise (2014-09-16T12:12: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)

 

Product Hunt goes from listserv to multimillion-dollar company (16 Sep 2014)

 

Late Chinese delivery of Apple’s new iPhones (16 Sep 2014)

 

Bloomberg briefing (16 Sep 2014)

 

Gasoline prices just keep falling (15 Sep 2014)

 

Shipping, Sept. 16 (15 Sep 2014)

 

GM expert says 19 deaths eligible for compensation (15 Sep 2014)

more »

 

Asia Times Online

 

What draws Modi to China (Tue 16 Sep 2014 11:00:00 GMT)

 

China expects Modi to deliver (Tue 16 Sep 2014 11:00:00 GMT)

 

A convenient Middle East genocide (Tue 16 Sep 2014 11:00:00 GMT)

 

FILM REVIEW From Hamas royalty to Israel's spy (Tue 16 Sep 2014 11:00:00 GMT)

 

Rattled by Russia, Tashkent looks east (Tue 16 Sep 2014 11:00:00 GMT)

 

China bids to cut coal output, halt price fall (Tue 16 Sep 2014 11:00:00 GMT)

 

THE BEAR'S LAIR Viennese peace twirl (Tue 16 Sep 2014 11:00:00 GMT)

more »

 


Site feed Updated: 2014-Sep-16 10:00