3 ms·
>Java is verbose compared to Kotlin or Ruby. True. But Kotlin was developed with 20+ years of hindsight, and Ruby is dynamic and pays by being slow for many of
by coldtea 8y ago
>Java is verbose compared to Kotlin or Ruby.
True. But Kotlin was developed with 20+ years of hindsight, and Ruby is dynamic and pays by being slow for many of its higher level features that make it less verbose.
And even Java is much less verbose today, with "var" and "closures", and functional interfaces, and auto inference.
The main cause of verbosity in Java code was BS J2EE fashion (throw in all kinds of Patterns to make it "enterprise"). This -- the 2005-era practices as you say, are more or less a thing of the past now. Are some of them in use for new projects? In some sure, you can't immediately erase the influence of a decade of code and tutorials and such. But e.g. even J2EE itself in later versions got rewritten in a different style, Spring today leverages the new features and stuff like Annotations, verbose XML everything has fallen out of favor, etc.