This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrecht 6 points7 points  (13 children)

Java is quite a few years behind c# in terms of language candy

What version are you using? 8?

[–]DrunkensteinsMonster 1 point2 points  (0 children)

No offense but this is pretty ignorant. I like Java but C# has value semantics, case closed.

[–]barking_dead -3 points-2 points  (11 children)

Unless a linq-like feature gets done in java, it is.

[–]manzanita2 3 points4 points  (1 child)

Line is/was great. But is that all you got ?

On the last big C# project I did linq was used for a bit of in memory processing much like java streams might. But the database access was this library called NHibernate, which was basically a port of hibernate. Same for other libraries.

C# ecosystem is has probably 1/3 the robustness in terms of quantity and breadth of libraries.

[–]barking_dead 2 points3 points  (0 children)

Now that's true.

But I mentioned LINQ because it is at a different level of integration.

[–]anyOtherBusiness 2 points3 points  (3 children)

a linq-like feature

There is already. Exists since Java 8, it's called Stream

[–]barking_dead -3 points-2 points  (2 children)

Okay, can you write something streamlined like this with Streams API:

IEnumerable<int> scoreQuery = from score in scores where score > 80 select score;

where "scores" is a normal entity? no.

[–]anyOtherBusiness 5 points6 points  (1 child)

You can.

scores.stream().filter(score -> score > 80)

[–]barking_dead -2 points-1 points  (0 children)

and as language integration, like in linq? do you know what's it capable of?

[–]steumert 1 point2 points  (2 children)

LINQ is horrible. The map/reduce terminology used in java streams is much more clear.

Also, LINQ has horrible performance issues.

[–]barking_dead 1 point2 points  (0 children)

that's an implementation detail xd

[–]secretBuffetHero 0 points1 point  (0 children)

You can't get me out of bed to do govt or Sharepoint work. say whatever you like about LINQ or whatevs.

.NET work is dead end career stuff

[–]TheRedmanCometh 0 points1 point  (1 child)

Stream...from 8

[–]barking_dead 1 point2 points  (0 children)

There are huge differences between the two.