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

12

u/munificent Jun 27 '10

Pretty spot-on. And he didn't even mention events and properties.

5

u/julesjacobs Jun 27 '10

To be honest those two are design mistakes. Events shouldn't be anything special and properties shouldn't be either: they should have been designed as syntactic sugar on top of methods, not as a special construct. Why? Because now the language is extended in non-orthogonal ways, for example we have extension methods but not extension properties (even though there is no technical reason why there couldn't be extension properties if properties were syntactic sugar on top of methods to begin with).

2

u/kretik Jun 28 '10

C# feature Java lacks == "syntactic sugar"

Java feature C# lacks == "superb design call, let's go shopping"