3 ms·
Java is fine. It did lag a little behind there for a few years, but the last two Java releases have really pulled things together. I will say C# is still my pr
by Someone1234 11y ago
Java is fine. It did lag a little behind there for a few years, but the last two Java releases have really pulled things together.
I will say C# is still my preferred language just for quality of life reasons, and I also feel like Java has been largely relegated to either web-backend or enterprise desktops. There is no practical way to deliver a Java application to an consumer now, Java Applets are "dead" and running Java on the desktop is a pain. Minecraft is likely the only reason any non-business user has Java still installed.
But saying Java is "only" good for web-backend stuff is kind of like saying a car is "only" good for driving. That's where the majority of new development currently happens and it has a very bright future. Java on Tomcat delivers that experience just fine (although C# w/MVC is still my poison, again for quality of life stuff).
- copperx 11y agoCould you explain the "quality of life" bit? Are you saying that if you programmed in Java life would be hellish?
- Someone1234 11y agoThis article summarises the differences: https://msdn.microsoft.com/en-us/library/ms836794.aspx https://msdn.microsoft.com/en-us/library/ms836794.aspx Although it is a little out of date in some areas (for both languages). C# has been stealing from F# for several versions now, so we get all kinds of nice shorthand for accomplishing sometimes complex operations.
- TheLoneWolfling 11y agoOff the top of my head: * A half-decent type system * No half-baked primitive / object distinction * The `as` operator * Various operators related to null * Ability to distinguish if something is nullable or not, and to have nullable and non-null references * The `checked` keyword * Operator overloading * Properties * Syntactic sugar w.r.t. getters and setters * out & ref parameters * struct support * unsigned values All of these things are major pain points in Java. Some of them can be overcome by running external tools, some of the time. Hopefully.