Java Annotations
whyjavasucks.com
Java Annotations
1–10 of 23 posts
Re: Java Annotations
#2Re: Java Annotations
#3Each language has its strengths.
Re: Java Annotations
#4Re: Java Annotations
#5If there is something I can't do well with Java, then I have Groovy. I will most likely waste time trying to implement the same thing with C#. In fact I would probably just use Python or C instead.
Re: Java Annotations
#6http://stackoverflow.com/questions/1624084/why-is-not-possib...
Not sure why it is a surprise to the author.
Re: Java Annotations
#7http://softwarecave.org/2014/05/20/repeating-annotations-in-...
And it's clear from reading the annotation documentation that null is not a valid value. It might be surprising to some developers, but it was a conscious decision made by the spec designers. It also shouldn't be a surprise to the author that Java is smart enough to forbid you to set a null value regardless of whether it was specified directly or they used a constant:
http://stackoverflow.com/questions/1178104/error-setting-a-d...
"I hate X" piece like this do nothing to advance the discussion on language features. They only add a bunch of noise and ramp up the flamewars on both sides.
Re: Java Annotations
#8Comparing C# and Java is so last decade. I don't use Java because of the language, but because of its enormous toolset and awesome community. If there is something I can't do well with Java, then I have Groovy. I will most likely waste time trying to implement the same thing with C#. In fact I would probably just use Python or C instead.
Re: Java Annotations
#9One of the available pluggable type systems adds physical units, something that, AFAICT, is certainly not trivial even in Haskell[2].
So the author may not like the decision not to allow null values in annotation arguments, but Java annotations have actually become a very powerful tool.
[1]: http://blog.paralleluniverse.co/2014/05/01/modern-java/#adva...
Re: Java Annotations
#10Comparing Java and .NET is unfair. Java was created in the 90's. .NET is way younger than that. .NET was created with Java in mind, and of course it's a better language. Each language has its strengths.