Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sam_lowry_
· 1y ago · 0 comments
Also validation. In Java, you can have almost seamless validation on instantiation of your very objects. That's why having a class for IBAN instead of String containing IBAN is the right way to do.
Comments
[–]
codr7
1y ago
Allocating objects for every single property can turn pretty bad in Java.
A strong enough type system would be a lot more useful.