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

http://stackoverflow.com/questions/3007337/make-a-method-of-the-business-layer-secure-best-practice-best-pattern

I asked you to write me an equivalent of @PreAuthorize("(hasRole('USER') and @myCustomService.myPredicate()) or hasRole('ADMIN')"), not a simple "has role" check. Please note the fact that I can use my own predicates.

Of course we laugh (at least I do) when looking at java's utter retardedness and failed attempts to imitate whatever .Net did right (such as generics/value types/LINQ).

What .NET did right while not having to worry about backwards compatibility. Also, Java is getting there. It just has a more careful approach to adding features.

Yeah, ASP.Net 5 has that stuff built-in, and it works solution-wide, but I'm too lazy to look that up now, go find it yourself if want.

How would that be ASP.Net's concern? That can't be implemented without proper support from the VM...

-2

u/[deleted] Feb 22 '15 edited Feb 22 '15

[removed] — view removed comment

2

u/nickguletskii200 Feb 22 '15

I would stay quiet if I were you, because if there's anyone worse than Oracle, it's Microsoft...