Hacker News new | ask | show | jobs
by JavaOnlyGuy 1575 days ago
No isNullOrEmptyString method, no Set operations, Java didn't have a good HTTP library until Java 11, no lazy file reading, unless you use InputStream which is a pain.

vast majority of mediocre libraries and one man libraries. We use Spring because it uses the best libraries, so the other ones are discarded.

Java being around for so long doesn't have a lot of convenience methods like others do languages do, like the ones I mentioned in the beginning.

So no, Java is a half assed programming language which C# and NET CORE should replace

4 comments

I think Kotlin has the utility methods you have in mind.

Im not saying C# is bad as I don‘t have experience with it, just that Kotlin is a more realistic replacement for most Java shops.

Java didn't have all these things, because there were a lot of very good libraries already doing that. Adding them inside a project is trivial. I think this approached encouraged creating alternatives to the standard APIs as well as extensions which in the end made the language even more rich.
What’s C# and .Net really like on Linux now? I know Microsoft says it’s great but I’m once bitten twice shy after trusting that Azure would be good.

I am happy to try different languages but I will never again support a Windows Server over a Linux VM.

I use .NET 6 on Amazon ECS (Amazon Linux), and it's a pleasure to work with. The dotnet CLI makes running and building super easy. So, I just develop with VS Code and a terminal on macOS and deploy to AWS.
I have C# web apps hosted on Linux for something like 2-3 years and it works very fine
At last workplace we developed microservices running on Kubernetes using Redis and Postgres as databases. Integration with Elastic Search, Kibana, Datadog were a breeze.