3 ms·
> The big argument against Java is that it’s verbose. I have a few others I'd prioritize over verbosity: - Generics - Dependency conflicts - Libraries t
by jroseattle 11y ago
> The big argument against Java is that it’s verbose.
I have a few others I'd prioritize over verbosity:
- Generics
- Dependency conflicts
- Libraries that simply "fix" the language, i.e. Apache Commons, Google Guava
Disclaimer: your mileage may vary. This is simply my personal pet-peeve list.
- reitanqild 11y agoKeeps getting better though, the example in the post: Map<String,User> userIdMap = new HashMap<String,User>(); is now just: Map<String,User> userIdMap = new HashMap<>(); and Java Generics already saves a ton of type casting as well as checks and corrections IMO.
- scalesolved 11y agoOr use Lombok and get it even more concise! val userIdMap = new HashMap<String,User>();
- cytzol 11y agoI actually find I don't need Apache Commons or Guava now that I'm using Java 1.8. A lot of the functionality has been standardised.