Hacker News new | ask | show | jobs
by edg5000 971 days ago
For anything that is anticipated to grow beyond a very small codebase, the lack of static checkability really becomes a pain with PHP.

I'm surprised that Java and modern C++ are not more popular. I know for large web applications, Java is popular in "enterprise" environments.

3 comments

> I'm surprised that Java and modern C++ are not more popular. I know for large web applications, Java is popular in "enterprise" environments.

Java scales both up (Spring Boot, with it's many integrations) and down (Dropwizard, a bunch of popular packages, nice for simpler projects) pretty well, has a great runtime and the language itself is okay.

Also there's .NET, where everything seems to revolve more around ASP.NET and EF, but as a consequence feels less fragmented than things on the Java side. Performance is also nice (especially on Linux with Kestrel) and the tooling is nice.

Honestly, both seem a viable option for something with more typing and language guarantees, as well as on average having a bit better performance than some of the highly dynamic languages (at the expense of iteration speed early on in development).

That said, Go is probably also worth a look, the deployment situation there is way simpler.

There are other statically typed languages that are more pleasant to work with.