Thursday Sep 26, 2013

JavaOne 2013 Collections Performance Fundamentals

Here are the slides from my JavaOne 2013 talk on Collections Performance

Collections Performance Fundamentals [PDF]

When the audio recording of the session is available I will repost with the recording URL.

Thursday Oct 04, 2012

JavaOne Collections Talk Slides

Here are the slides from my JavaOne 2012 talk on Java Collections

Field Guide to Java Collections [PDF]

When the audio recording of the session is available I will repost with the recording URL.

Thursday Oct 06, 2011

JavaOne 2011 : Parallel Data for Java Slides

Despite having a bad cold I made it through my JavaOne presentation on the parallel library extensions that are being developed for Java 8. As I said following one coughing bout "DayQuil--unofficial sponsor of this session". Hopefully it was intelligible and coherent for those who had to listen to my coughing and sniffling throughout.

Here's the slides for the presentation 25066 : Bulk Hauling -- Parallel Data for Java. Session audio may be available on the Parleys.com Java Channel in a few days.

Wednesday Oct 05, 2011

JavaOne 2011 : Collections BOF Slides

The annual JavaOne Collections Birds-of-a-Feather gathering was on Monday night. It was extremely well attended and I hope was useful to everyone who participated. Here are the slides for the presentation part of the session. The audio should be up on the JavaOne site in a few days.

2011 Collections Gathering Slides

My other session "Bulk Hauling : Parallel Data for Java" is on Thursday @ 11 in Hilton Yosemite. It will cover the lambda based parallel extensions to Collections we are building for Java 8. See you there!

Update:I've corrected the broken link to my slides. Slides are also up for the Parallel Data talk.

Friday Jul 30, 2010

More Than Just List

I've noticed that a lot of people who use the java.util Collections classes in their APIs will most often use List. Sometimes to the exclusion of the other Collections types. The other core Collections classes Set, Map and Collection are under-represented in most public Java APIs.

In the APIs I've written, especially since the introduction of generics, I try to use the other types more liberally. Why not just use List? To me List implies "ordered" and "duplicates allowed". If ordering isn't a relevant characteristic for the values I'll use Collection. If I wish to indicate that duplicate elements are not allowed I'll use Set or for cases when order does matter, SortedSet. When the collection

Using the right Collection type provides the API user a good hint as to key characteristics of the collection data. Using only List in APIs makes those characteristics less obvious and may lead to mis-use or abuse of APIs.

About

mduigou

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today