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

 

Clock ticks on Iranian nuclear talks (24 Nov 2014)

 

Swiss museum to accept 'Nazi art' (24 Nov 2014)

 

US police kill boy over replica gun (24 Nov 2014)

 

Mother of baby left in drain charged (24 Nov 2014)

 

Falling oil price costs Russia (24 Nov 2014)

 

Banker ruled fit for HK murder trial (24 Nov 2014)

 

New computer spyware discovered (23 Nov 2014)

 

Festival drops rape accused editor (24 Nov 2014)

 

Obama praise for 'President Clinton' (23 Nov 2014)

 

Dewani judge asked to throw out case (24 Nov 2014)

more »

 

Slashdot News for nerds, stuff that matters

 

Alva Noe: Don't Worry About the Singularity, We Can't Even Copy an Amoeba (2014-11-24T01:00:00Z)

 

NASA Remasters 20-Year-Old Galileo Photographs of Jupiter's Moon, Europa (2014-11-23T23:46:00Z)

 

2014 Hour of Code: Do Ends Justify Disney Product Placement Means? (2014-11-23T22:29:00Z)

 

Highly Advanced Backdoor Trojan Cased High-Profile Targets For Years (2014-11-23T21:15:00Z)

 

Elon Musk Talks "X-Wing" Fins For Reusable Rockets, Seafaring Spaceport Drones (2014-11-23T20:09:00Z)

 

Blame America For Everything You Hate About "Internet Culture" (2014-11-23T19:03:00Z)

 

Prospects Rise For a 2015 UN Climate Deal, But Likely To Be Weak (2014-11-23T17:58:00Z)

 

Spaceport America Loses .7 Million Due To Virgin Galactic Delays (2014-11-23T16:40: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)

 

Cnet editors pick their top products (23 Nov 2014)

 

Chromebooks beat iPads as top education device (22 Nov 2014)

 

Leaked transcript shows Geico’s stance against Uber, Lyft (22 Nov 2014)

 

Airbnb expo attracts company’s most loyal hosts (22 Nov 2014)

 

S.F. unemployment low, but still above dot-com days (22 Nov 2014)

 

Blighted harvest could drive up olive oil prices (22 Nov 2014)

more »

 

Asia Times Online

 

SPENGLER Dumbing it away (Fri 21 Nov 2014 11:00:00 GMT)

 

THE ROVING EYE Washington plays Russian roulette (Fri 21 Nov 2014 11:00:00 GMT)

 

Iran takes center stage in East-West struggle (Fri 21 Nov 2014 11:00:00 GMT)

 

Western bloodlust and a third intifada (Fri 21 Nov 2014 11:00:00 GMT)

 

Mediate for peace in Kashmir (Fri 21 Nov 2014 11:00:00 GMT)

 

Hot money mocks Xi's 'rule of law' vow (Fri 21 Nov 2014 11:00:00 GMT)

more »

 


Site feed Updated: 2014-Nov-24 03:00