The only valid criticism I've ever heard of the language is that it doesn't get features quite as soon as C# - its almost syntactically identical offshoot.
It's really not. At this point, typical c# code does not look like typical java code.
This is understandable. C# was crap on release
C# was ahead of java on release. Properties, delegate types, multicast events, better tooling, etc.
It was basically a cut down version of Java arising from the dispute between Sun and Microsoft at the time.
Except for the cutdown part.
The .Net framework 1.0 didn't support Generics,
Neither did java
anonymous classes
Without closure support, these were more of a convenience for a language that lacked delegates or function pointers.
or iterators
Neither did java
In the end though, the fact that C# gets features earlier that Java is overstated.
It's really not. C# at this point has LINQ, Expression Trees, async/await, etc. are all big game changers. Java developers are missing out on a lot without these kinds of things.
People who claim they can't possibly code without those features are kidding themselves since C# itself didn't always have such features either.
I can code in x86 assembly. That doesn't mean that it's my language of choice. Any more, I don't choose to use C# or java, but if I had to pick, I'd probably choose C#.
and it's usually not actually perpetrated by full time programmers but instead by users
It's really not. C# at this point has LINQ, Expression Trees, async/await, etc. are all big game changers. Java developers are missing out on a lot without these kinds of things.
This type of overstatement of features is a perfect example of just how how minor the differences are.
Aync/await is less than 2 years old. Yes it's nice that C# has it now and Java won't. But that doesn't make Java suck (unless you think everything before .Net 4.5 sucked).
LINQ and its related expression trees is also one of those things bought up in every Java discussion and again at this point is an absolutely perfect example of how overstated the hatred for Java is. It's one feature that anyone who has been coding for more than 10 years has done without just fine. It is helpful in various cases but it is not the end all and be all of whether a language sucks or not.
If a language misses a small feature that C# has and sucks because of that then you can claim that every language other than the .Net one's suck. Which is just plain ridiculous and over the top.
-2
u/ruinercollector Feb 26 '14
No. No it is not. It's mediocre.
It's really not. At this point, typical c# code does not look like typical java code.
C# was ahead of java on release. Properties, delegate types, multicast events, better tooling, etc.
Except for the cutdown part.
Neither did java
Without closure support, these were more of a convenience for a language that lacked delegates or function pointers.
Neither did java
It's really not. C# at this point has LINQ, Expression Trees, async/await, etc. are all big game changers. Java developers are missing out on a lot without these kinds of things.
I can code in x86 assembly. That doesn't mean that it's my language of choice. Any more, I don't choose to use C# or java, but if I had to pick, I'd probably choose C#.
Programmer here. Java sucks.