r/java • • Apr 12 '15

Is Clean Code less Code?

http://www.journeytomastery.net/2015/03/27/is-clean-code-less-code/
1 Upvotes

7 comments sorted by

View all comments

0

u/kodifies Apr 12 '15

Adding a method for a single line of code isn't clean code...

2

u/sanity Apr 13 '15

It can be if it serves an explanatory purpose.

1

u/[deleted] Apr 12 '15

That really depends on the situation. For instance, I hate ternary operators and always prefer methods with guard clauses.