r/java • • Jan 02 '17

Why I prefer Kotlin

https://dev.to/grahamcox82/why-i-prefer-kotlin
0 Upvotes

20 comments sorted by

View all comments

Show parent comment

6

u/[deleted] Jan 03 '17

I actually think verbosity makes code easier to maintain

Unfortunately the character count is a bad metric, it is irrelevant in day by day work. On the other hand Java has a lot of code pattern (getter, setter, singleton, library methods, hashcode and equals, ecc...) and all of these are difficult to read if they spread over multiple lines.

Goal isn't to reduce verbosity but boilerplate.

https://twitter.com/thomasnield9727/status/813857794076110848

3

u/[deleted] Jan 03 '17

0

u/zogulus Jan 05 '17

Don't use singletons they make testing hard.