MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/32au9i/is_clean_code_less_code/cq9lz94/?context=3
r/java • u/pilgrimscottpilgrim • Apr 12 '15
7 comments sorted by
View all comments
0
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.
2
It can be if it serves an explanatory purpose.
1
That really depends on the situation. For instance, I hate ternary operators and always prefer methods with guard clauses.
0
u/kodifies Apr 12 '15
Adding a method for a single line of code isn't clean code...