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 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!

-2

u/[deleted] Feb 22 '15

[removed] — view removed comment

2

u/nickguletskii200 Feb 22 '15

Show me how its done in C#, and then we'll laugh. Also, I accidentally submitted the parent post early, read the last paragraph.