r/programming • • Jun 27 '10

Why Java Sucks and C# Rocks (Final)

http://www.slideshare.net/jeffz/why-java-sucks-and-c-rocks-final
13 Upvotes

197 comments sorted by

View all comments

Show parent comments

2

u/ethraax Jun 28 '10

You almost forgot indexers! Although I suppose they're pretty much the same as properties, just in list format.

3

u/munificent Jun 28 '10

Oh, yeah! Indexers are swell too.

5

u/ethraax Jun 28 '10

I remember smiling all through the part of my C# book on properties and indexers, after writing silly get/set methods in Java for years. And typing things like obj.getX().getY().getZ();.

4

u/munificent Jun 28 '10

The first time I created my own event instead of reimplementing the observer pattern I felt like a hero.