Java Isn't Verbose – You Are
dev.to·1d·
Discuss: DEV

Every week, some developer crawls out of their legacy codebase to announce that Java is “too verbose.” They’ll tweet about it. They’ll mention it in code reviews. They’ll use it as an excuse for why their 200-line method exists.

But here’s the thing: when I actually look at their code, it’s not Java’s fault. It’s theirs.


The Real Problem? Your Fingers

Let me show you what I mean. Here’s the kind of code people write and then blame the language for:

User user = new User();
user.setName("Alice");
user.setAge(30);
user.setEmail("alice@example.com");
user.setActive(true);

repo.save(user)

Six lines to create one object. Now here’s the same thing written by someone who’s actually read a release note since 2015:

var user = new User("Alice", 30, "alice@example...

Similar Posts

Loading similar posts...