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

 

IS forces 'pushed back' in Iraq (25 Oct 2014)

 

Ebola outbreak cases pass 10,000 (25 Oct 2014)

 

Chile marches against education bill (25 Oct 2014)

 

Cream bassist Jack Bruce dies, aged 71 (25 Oct 2014)

 

Attacks 'threaten Egypt's existence' (25 Oct 2014)

 

Iran woman's hanging draws protests (25 Oct 2014)

 

Mass protest over Italy job reforms (25 Oct 2014)

 

US urges probe into West Bank death (25 Oct 2014)

 

New York axe attack 'terrorist act' (25 Oct 2014)

 

Protesters scuffle at N Korea border (25 Oct 2014)

more »

 

Slashdot News for nerds, stuff that matters

 

The Problem With Positive Thinking (2014-10-25T23:14:00Z)

 

Ask Slashdot: How Do I Make a High-Spec PC Waterproof? (2014-10-25T22:10:00Z)

 

Building All the Major Open-Source Web Browsers (2014-10-25T21:04:00Z)

 

New Oculus SDK Adds Experimental Linux Support and Unity Free For Rift Headset (2014-10-25T19:59:00Z)

 

FCC Postpones Spectrum Auction Until 2016 (2014-10-25T18:52:00Z)

 

EU Sets Goal To Cut Greenhouse Gas Emissions 40% By 2030 (2014-10-25T17:50:00Z)

 

High Speed Evolution (2014-10-25T16:46:00Z)

 

Italian Supreme Court Bans the 'Microsoft Tax' (2014-10-25T15:39: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)

 

Laurel Book Store moves to downtown Oakland (25 Oct 2014)

 

Bay Area solar firms take dim view of Arizona utility’s move (25 Oct 2014)

 

Four-week jobless claims at 14-year low (25 Oct 2014)

 

Tech political donors at crossroads as funds pour into campaigns (25 Oct 2014)

 

Optimize your game plan for holiday toy shopping (24 Oct 2014)

 

U.S. stock market has best week in nearly 2 years (24 Oct 2014)

more »

 

Asia Times Online

 

THE ROVING EYE The Kobani riddle (Fri 24 Oct 2014 11:00:00 GMT)

 

Lords rule Hong Kong's democracy dance (Fri 24 Oct 2014 11:00:00 GMT)

 

The importance of being exceptional (Fri 24 Oct 2014 11:00:00 GMT)

 

The US and selective support for separatism (Fri 24 Oct 2014 11:00:00 GMT)

 

COMMENT Uzbek president faults Soviet system, keeps relics (Fri 24 Oct 2014 11:00:00 GMT)

 

JOHN PILGER Whitlam and Australia's forgotten coup (Thu 23 Oct 2014 11:00:00 GMT)

 

SPEAKING FREELY Ideological dilemma grips Hong Kong (Fri 24 Oct 2014 11:00:00 GMT)

 

Rouble decline hits home in Central Asia (Fri 24 Oct 2014 11:00:00 GMT)

more »

 


Site feed Updated: 2014-Oct-25 17:00