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 (0)

 

 

Comments (0)

past articles »

 

BBC News

 

Abbas 'refuses talks with Israel' (11 Mar 2010)

 

Greeks stage fresh general strike (11 Mar 2010)

 

Mexican shakes up world rich list (11 Mar 2010)

 

DR Congo mines 'hit by extortion' (11 Mar 2010)

 

Contractors 'divert Somalia aid' (10 Mar 2010)

 

Chile's new leader to be sworn in (11 Mar 2010)

 

Haiti situation 'dire', Obama says (10 Mar 2010)

 

Pakistan drone raid 'kills 12' (11 Mar 2010)

 

Google to scan old Italian books (10 Mar 2010)

 

Israel supermarket uses parody film of Dubai assassins in advert (10 Mar 2010)

more »

 

Slashdot News for nerds, stuff that matters

 

"Mythical Man-Month" Supposedly Busted By MIT Startup (2010-03-11T01:15:00+00:00)

 

Zeus Botnet Dealt a Blow As ISPs Troyak, Group 3 Knocked Out (2010-03-10T23:59:00+00:00)

 

OnLive Remote Gaming Service Launches In June (2010-03-10T23:08:00+00:00)

 

Google Opens Apps Marketplace (2010-03-10T22:27:00+00:00)

 

Digitizing and Geocoding Old Maps? (2010-03-10T21:42:00+00:00)

 

Sweet, Sour, Salty, Bitter, Protein<nobr> <wbr></nobr>... and Now Fat (2010-03-10T21:21:00+00:00)

 

The Lost Film That Accompanied Empire Strikes Back (2010-03-10T21:00:00+00:00)

 

OpenSSH 5.4 Released (2010-03-10T20:40:00+00:00)

more »

 

TechPsychic Tech Rumors and Invented News

 

TechPsychic: Top paid for the FTSE 100, the future. (11 Mar 2010)

 

TechPsychic: Opera Software, Facebook During Apple's iPad Comes along, Windows Vista. (10 Mar 2010)

 

TechPsychic: JB: Why AT&T data plan? (10 Mar 2010)

 

TechPsychic: Apple announced on Twitter search web. (10 Mar 2010)

 

TechPsychic: Bing search, Intel, the end result of CEO of Vevo. (10 Mar 2010)

 

TechPsychic: Tumblr has a product releases was announced that it blows Mint's iPhone Apps. (10 Mar 2010)

 

TechPsychic: Can connect to launch a minor splash by venture market share among Opera Mini. (09 Mar 2010)

 

TechPsychic: Intel Goes to come With Facebook Matures, while. (09 Mar 2010)

more »

 

SF Gate

 

Constituents conflicted over gay legislator (2010-03-10T15:26:44UTC)

 

Oakland mom held in suffocation of girl, 2 (2010-03-10T16:50:00UTC)

 

Presented By: (10 Mar 2010)

 

Man found shot to death on Rodeo porch (2010-03-10T19:42:32UTC)

 

S.F. mayor seeks texting limit at city meetings (2010-03-10T16:34:33UTC)

 

Man, 33, shot to death on North Oakland street (2010-03-10T17:07:38UTC)

 

San Francisco supes vote to extend smoking ban (2010-03-10T14:36:16UTC)

 

Uncontrolled acceleration: Stopping runaway car (2010-03-10T13:44:08UTC)

 

Dollar mixed on economic reports, Chinese exports (2010-03-10T22:41:23UTC)

 

Derivatives debate splits US and Europe regulators (2010-03-10T22:41:22UTC)

 

MoDOT seeks to save over 5 years (2010-03-10T22:35:08UTC)

 

Nebraska upsets Missouri 75-60 in Big 12 (2010-03-10T22:34:05UTC)

 

Summary Box: Tropicana sizes, prices (2010-03-10T22:30:05UTC)

 

Summary Box: OnLive game streaming to come in June (2010-03-10T22:29:05UTC)

more »

 

Asia Times Online

 

China has a Congo copper headache (Wed 10 Mar 2010 19:00:00 +0700)

 

Beijing seeks a shift in geopolitics (Wed 10 Mar 2010 19:00:00 +0700)

 

Marjah fears return of warlords (Wed 10 Mar 2010 19:00:00 +0700)

 

Iran and Israel play cat and mouse (Wed 10 Mar 2010 19:00:00 +0700)

 

SINOGRAPH : Different takes on coping with change (Wed 10 Mar 2010 19:00:00 +0700)

 

A good bet on cash, tourists and crime (Wed 10 Mar 2010 19:00:00 +0700)

 

SPEAKING FREELY : Imam's ghost stalks Arab summit (Wed 10 Mar 2010 19:00:00 +0700)

 

Pakistan risks IMF's .2bn (Wed 10 Mar 2010 19:00:00 +0700)

 

End in sight for Bank Century circus (Wed 10 Mar 2010 19:00:00 +0700)

 

China assesses its gold strategy (Wed 10 Mar 2010 19:00:00 +0700)

 

No exit (Wed 10 Mar 2010 19:00:00 +0700)

 

THE MOGAMBO GURU : Inflation insurance (Wed 10 Mar 2010 19:00:00 +0700)

more »

 


Site feed Updated: 2010-Mar-11 00:15