Java Isn't Verbose – You Are
dev.to·17w·
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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help