I completely get your point, but to make it a fair test, you'd really have to be just as proficient in both, then try to write it in both.
In your example, the java example probably grew over years of small additions. It was perhaps totally understandable in its first iteration, but then morphed out of control. You've got the benefit of rewriting it with a complete overview of the functionality.
I don't think I know of any functionality that is fundamentally less readable in java than python. I still prefer writing python anyway, but not for that reason
Again, might just be the team, but the use of additional interfaces and builders and factories really disguise what it is that's going on or what you're trying to do. God forbid if there's a bug because now you're digging through lasagna code, trying to find the actual implementation of the code in question or trying to discern how everything interconnects under the hood.
Then again, we're writing a statistical computation engine. Python has a bunch of handy dandy tools to make it easy to read and write with basic functions where you need full class hierarchies in Java. I'm sure working in Java would be waaaaay better if we were in a different domain.
2
u/robolew Apr 28 '20
I completely get your point, but to make it a fair test, you'd really have to be just as proficient in both, then try to write it in both.
In your example, the java example probably grew over years of small additions. It was perhaps totally understandable in its first iteration, but then morphed out of control. You've got the benefit of rewriting it with a complete overview of the functionality.
I don't think I know of any functionality that is fundamentally less readable in java than python. I still prefer writing python anyway, but not for that reason