For the past few days I have been in the fabulous country of Israel at the JavaEdge conference. Duing the keynote speech, I presented 10 possible language changes for JDK7, and asked the audience to vote on them.
These results are in more depth than the Devoxx figures simply because we could extract information about each persons preferences. For academics or statisticians the raw data is available in Open Office format.
Given ten language changes, rank them according to priority
So, the question is the same basic question as we asked at Devoxx, but with a different selection of changes to pick from. The results show that 171 people voted correctly (starting from 1 for the first preference, 2 for the second and so on). Another 41 attendees voted mostly corrrectly, skipping one of the prefereces (for example marking a 1st, 2nd, 3rd and 5th preference, but not a 4th). A final 113 attendees didn't follow the instructions at all, and marked multipe 1st preferences, multiple 2nd preferences and so on.
The features voted on were:
- For-each loop over a Map
- Control over for-each loops (index/remove)
- List/Map access using []
- Infer generics on the RHS
- Multi-catch of exceptions
- String switch
- String interpolation
- Multi line strings
- Resource management
- Null handling
These results are for those who completed the voting according to the rules (171 attendees).
Here are the first preference votes:
Adding the second preference votes:
Adding the third preference votes:
Adding the fourth preference votes:
Adding the fifth preference votes:
Adding the remaining votes (white is didn't vote, black is 'this is a bad idea':
Now those that almost voted according to the rules - votes are adjusted to move everything beyond the missing column up (41 attendees).
All votes:
Now those that voted based on general preference (103 attendees).
All votes:
So, what do these results tell us? (I'm focussing the analysis on those who voted fully according to the rules, as it is hard to interpret the results from those who simply gave arbitrary rankings).
As with the Devoxx results, there is a clear winner - null handling. Null handling had 50 first preference votes, double that of second place string switch and almost a third of all first preferences. This trend continued with almost two thirds placing it in their top four.
Other popular options were String Switch, Multi-catch of exceptions, enhanced for-each loop for Maps, enhancing the for-each loop to be able to remove or find the index and ARM-style resource management.
Unpopular options (especially considering the black 'bad idea' values) were List/Map access using [] and String interpolation (${variable} in strings).
Infer generics and multi-line strings were deemed of relatvely low importance but not particularly objectionable.
The other 144 votes that were not completely according to the rules are harder to interpret. If someone wants to give it a go, feel free to interpret the raw data.
Summary
Firstly, a big thank you to the JavaEdge voters, and to the AlphaCSP team in Israel. Again, we have some really interesting figures from this vote, with null handling again coming out top. Clearly, there needs to be some real thought about whether some form of null handling can be achieved.
Any feedback or thoughts are welcome!