Ventures of an ex indie game developer

Java as bad as expected

In my guesstimate, I had expected my Java-equivalent program to be three times as big (in sloc), and with six times as many source files as the original Python program. The sloc figure wasn't as bad, only 2x worse than Python; the .java file count however ended up with 14x that of .py.


If we weight sloc thrice as heavy as file count, Java is 5 times worse than Python. With the same weights, my previous guess would have landed at 3.5 times worse than Python. It's in the same ballpark. Suffice to say that Java sucks more than Python.

For small hacks that is. I wouldn't want to build something big in Python. On the other hand, I've never attempted building something big in Go, Haskell or Elixir. I guess at least one of those is a better option than Java for building something huge.

PS. Also worth mentioning is that Java's Thymeleaf is shitty alternative to Python's Jinja 2.

About the author

Mitt foto
Gothenburg, Sweden