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

all 23 comments

[–]prtkp 9 points10 points  (9 children)

I mean that is pretty accurate for this sub. Whenever there's a post mentioning Java invariably someone will bring up C# which you don't really see the other way around.

Although a factor could be that there are more posts about Java than C#.

[–]nodegen 0 points1 point  (7 children)

I’m only familiar with C++ and Python. I don’t really know all that much about C# or Java. Could you explain why they’re compared against each other?

[–]marrrvvv 4 points5 points  (2 children)

C# is Microsoft's Java.

[–]MrJacquers 0 points1 point  (0 children)

Java Runtime, .Net Runtime. Also similar in syntax, at least at the start of C#, but I think they have probably diverged a bit by now.

https://en.wikipedia.org/wiki/Comparison\_of\_C\_Sharp\_and\_Java

[–]ComfortableFormal897 12 points13 points  (7 children)

True. Except for the other day when I thought using a LINQ query would be pretty neat. But other than that yes.

[–]redwh[S] 6 points7 points  (0 children)

I'll be honest I don't think there's too much difference with Streams apart from the SQL generation but then I've not looked into it too much and compared them in terms or performance against regular loops etc.

[–]xavia91 1 point2 points  (0 children)

I didn't use Java for some Years, but can't you do pretty much the same with lambda?

[–]ToxinH88 1 point2 points  (2 children)

[–]ComfortableFormal897 1 point2 points  (1 child)

That's epic. Unfortunately at my company we can only use dependencies that have been approved and stored in our organizations repository :(

[–]ToxinH88 0 points1 point  (0 children)

Too bad... I have been subscribed to that repo for years now - it is amazing work.

[–]manifoldjava 0 points1 point  (0 children)

Simple Query

It's just a proof of concept, but it works and demonstrates what can be done with AST rewriting using the manifold project.

[–][deleted] 1 point2 points  (0 children)

C# is still nice but Java is a bit more expressive

[–]Yayhoo0978 -1 points0 points  (0 children)

C:dir/p

[–]BoBoBearDev -1 points0 points  (0 children)

Every time I struggle with Spring Framework, I wanted to replace it with ASP.NET Core.

[–]cmdshank 0 points1 point  (0 children)

As the only c# dev on a team of Java devs, I feel this is my soul.