3 ms·
Take my opinion with a huge pound of salt because I've only ever used Java for smaller projects but... A large part of Java's verbosity is optional, but it fee
by Sohcahtoa82 4y ago
Take my opinion with a huge pound of salt because I've only ever used Java for smaller projects but...
A large part of Java's verbosity is optional, but it feels to me that people do it because "That's how you write Java!".
But you don't HAVE to write an interface, abstract class, and factory for every class. You can just...write a class. You don't need to write a class that has nothing but an "invoke" function. You can just...write a function. You don't need 10 layers of abstraction for simple cases.
- dataflow 4y agoPeople exacerbate the problem but the language itself is pretty darn verbose too. Just look at how much code you need to instantiate a generic array for instance.