r/programming • • Feb 22 '15

Java Makes Programmers Want To Do Absolutely Anything Else With Their Time

http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35 Upvotes

636 comments sorted by

View all comments

Show parent comments

2

u/nickguletskii200 Feb 22 '15

Examples? I can show this tiny example of exactly the opposite.

Treating paths like strings. The collections library is lacking.

java people often bring that argument, but they fail to provide REAL concrete examples of such supposedly miraculous "libraries" that don't exist in .Net.

A proper additional collections library like Guava or Apache Commons Collections, especially since C# is a language that most definitely needs one.

Something like Spring Security and anything AOP in general. Spring Security method security has no alternative on .NET AFAIK and everything else AOP on .NET is not as mature and feature rich as on Java.

Oh, and here's a killer... Alternative for JRebel and Spring Loaded.

-3

u/[deleted] Feb 22 '15

[removed] — view removed comment

2

u/nickguletskii200 Feb 22 '15 edited Feb 22 '15

There's a path API in System.IO, if you don't use it it's your fault.

Did you even read what I said? System.IO.Path treats paths like strings. A path isn't a special object, its just a freaking string!

Nuget is your friend

I did research on the libraries I could find earlier. None of them are even close to being as comprehensive and fast as the Java alternatives.

Their site[2] seems to enumerate a bunch of features that are built-in on ASP.Net/MVC:

Did you even read what Spring Security method security actually is? .NET CAS is more like Java security policies. If I am wrong, please provide me with an example of a method that can only be called by authenticated users when a certain condition is met or by an admin at any time. In Spring Security, I would just write something like this:

@PreAuthorize("(hasRole('USER') and @myCustomService.myPredicate()) or hasRole('ADMIN')")
void foo() {

}

LOL. java needs a third party commercial paid library for something that the .Net compiler does for free.[4] .

Are you fucking shitting me? This blogpost is a hack that lets you replace controllers and controllers only! With JRebel or Spring Loaded (which is actually completely free), I can hotswap any method!