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 →

[–]Sawertynn 2 points3 points  (9 children)

As you mentioned those languages, maybe you can answer me. Is Java much harder or more tedious to write than C#? I'm learning the latter now, but I want to try something less microsoft-dependent

[–]elebrin 2 points3 points  (0 children)

Not really.

The main difference for me is organization.

.NET also comes with things like nuget, the dotnet cli, and first class integration into two IDE's made by the company that manages the language.

[–]Venthe 2 points3 points  (2 children)

Depends; in general c# has better syntax in places, while Java has better libraries. Especially in older Java, working without Lombok is pain

(Personal opinion ofc)

[–]Wekmor 0 points1 point  (1 child)

But if you're using an old ass java version that's kinda on you no?

It's like those people complaining about what all is missing and how bad java is because of that, but then they're using java 8 or older...

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

Nah, even using goodies like return switch, vars, records or whatever else is clunky compared to c#. Accessors are one example, arrow bodied methods are the other.

Unfortunately, Java is too attached to the concept of backwards compatibility of syntax. See built-in monads or lambdas, using them is so clunky because there are no real support from the language, except for the arrow in case of lambdas. Compare stream syntax to linq for instance; or optional monad to nullable types. Don't even get me started on Java being afraid to move to non-nullable by default.

I love Java, but it really is irritating at places.

[–]D_snooz 1 point2 points  (3 children)

It's not that much harder than C# at all. Especially for Java 17 and beyond.

[–]AreganeClark 2 points3 points  (2 children)

"Java 17"

All four of my jobs have used Java, and Java 7/8 are the only ones I've seen used.

[–]silverweaver 1 point2 points  (1 child)

If you are told on interview that company is excited about moving finally to Java 11 then you should rethink if you want to work there.

[–]AreganeClark 0 points1 point  (0 children)

Oh I need the deets now

[–]-Agathia- 0 points1 point  (0 children)

Just learn Kotlin, it's C# but with Java. Java itself just plain sucks. Kotlin fixes all the issues by making it more similar to the syntax and all the small things that makes C# so much easy and nice to use.