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

1

u/nickguletskii200 Feb 22 '15

At least in C# we don't have to use some 3rd party libs to work with dates

Neither do we. Java 8 has an amazing date time API.

We also have LINQ, which is great.

And we have streams. And?

2

u/fhelwanger Feb 22 '15

And why C# standard lib is utter shit? Can you point something?

-1

u/nickguletskii200 Feb 22 '15

Treating paths as strings, for example. In Java, we have classes like File (the old class) and Path (the new, generic class). In C#, a path is a string and you modify it by calling static methods.

1

u/[deleted] Feb 22 '15

But streams suck compared to enumerables, the nice thing about IEnumerable is that it's for collections and streams. So you don't have to collect anything unless you're casting to a collection, you can make extension methods that work on all collections and streams, and the syntax is way nicer.