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

 

'Dozens die' as migrant boat sinks (05 May 2015)

 

'Unthinkable atrocities' in Aleppo (05 May 2015)

 

Le Pen 'ashamed' Marine has his name (05 May 2015)

 

IS claims US Prophet cartoon attack (05 May 2015)

 

Gym fall killed Silicon Valley boss (05 May 2015)

 

France set to back new spying rules (05 May 2015)

 

Eurozone economic growth 'to rise' (05 May 2015)

 

HSBC move decision 'in months' (05 May 2015)

 

Surge in Brazil dengue fever cases (05 May 2015)

 

Nationwide tours for party leaders (05 May 2015)

more »

 

Slashdot News for nerds, stuff that matters

 

Recent Paper Shows Fracking Chemicals In Drinking Water, Industry Attacks It (2015-05-05T13:29:00+00:00)

 

Appeals Judge Calls Prenda an "Ingenuous Crooked Extortionate Operation" (2015-05-05T12:50:00+00:00)

 

The Programming Talent Myth (2015-05-05T12:05:00+00:00)

 

Led By Zuckerberg, Billionaires Give To Fund Private Elementary Schools (2015-05-05T09:36:00+00:00)

 

New Findings On Whale Tongues May Lead To Insight On Human Nerve Damage (2015-05-05T07:04:00+00:00)

 

Cisco Names Veteran Robbins To Succeed Chambers as CEO (2015-05-05T04:30:00+00:00)

 

Single Verizon IP Address Used For Hundreds of Windows 7 Activations (2015-05-05T02:06:00+00:00)

 

Singapore's Prime Minister Shares His C++ Sudoku Solver Code (2015-05-05T00:05: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)

 

With these bots, coding can be child's play (5 May 2015)

 

California gas prices jump 31 cents in 1 week on refinery woes (5 May 2015)

 

Business News Roundup, May 5 (4 May 2015)

 

Twitter declares Periscope won the Pacquiao-Mayweather fight (4 May 2015)

 

Comcast Internet customers surpass cable subscribers (4 May 2015)

 

Daily Briefing, May 5 (4 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-05 07:00