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

 

Nepal calls for direct quake funding (25 May 2015)

 

Massive India heatwave 'kills 500' (25 May 2015)

 

IS threat to rare bird near Palmyra (25 May 2015)

 

Deadly tornado strikes Mexican city (25 May 2015)

 

US jets escort NYC-bound flight (25 May 2015)

 

'Deal to end' Nigeria fuel crisis (25 May 2015)

 

Malaysia finds 139 'migrant graves' (25 May 2015)

 

Iraq will take back Ramadi 'in days' (25 May 2015)

 

Tunisian soldier shoots seven dead (25 May 2015)

 

Israel ex-PM given prison sentence (25 May 2015)

more »

 

Slashdot News for nerds, stuff that matters

 

D.C. Police Detonate Man's 'Suspicious' Pressure Cooker (2015-05-25T16:28:00+00:00)

 

No, Your SSD Won't Quickly Lose Data While Powered Down (2015-05-25T15:35:00+00:00)

 

EU Drops Plans For Safer Pesticides After Pressure From US (2015-05-25T14:43:00+00:00)

 

Microsoft Tries Another Icon Theme For Windows 10 (2015-05-25T13:53:00+00:00)

 

Firefox's Optional Tracking Protection Reduces Load Time For News Sites By 44% (2015-05-25T13:02:00+00:00)

 

Tech Bubble? What Tech Bubble? (2015-05-25T12:07:00+00:00)

 

San Bernardino Sheriff Has Used Stingray Over 300 Times With No Warrant (2015-05-25T09:01:00+00:00)

 

Daimler and Qualcomm To Develop In-Car Tech, Wireless Charging (2015-05-25T05:58:00+00:00)

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)

 

App of the Week: StubHub (24 May 2015)

 

Daily Briefing, May 26 (24 May 2015)

 

Big law firms win more patent work (24 May 2015)

 

These tablets have the best screens (24 May 2015)

 

Daily Briefing, May 25 (24 May 2015)

 

Smart home of the future is here; why aren’t people buying in? (23 May 2015)

more »

 

Asia Times Online

 

China ramps up charges against Zhou (Fri 20 Mar 2015 11:00:00 GMT)

 

'100 dead' in Myanmar fighting (Fri 20 Mar 2015 11:00:00 GMT)

 

Tunisian president vows no mercy (Fri 20 Mar 2015 11:00:00 GMT)

 

SPENGLER Israel's 'referendum' on 'two-state solution' (Fri 20 Mar 2015 11:00:00 GMT)

 

Russia, S Ossetia sign 'integration' pact (Fri 20 Mar 2015 11:00:00 GMT)

 

US military plunges Aquino into crisis (Fri 20 Mar 2015 11:00:00 GMT)

 

Rahmon celebrates Tajik democracy (Fri 20 Mar 2015 11:00:00 GMT)

 

THE BEAR'S LAIR Being old in 2040 no fun (Fri 20 Mar 2015 11:00:00 GMT)

 

China grant boosts Nepal ties (Fri 20 Mar 2015 11:00:00 GMT)

more »

 


Site feed Updated: 2015-May-25 10:00