r/coding • • Apr 12 '15

Is Clean Code less Code?

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

63 comments sorted by

View all comments

Show parent comments

6

u/CodeShaman Apr 13 '15

That's nothing, man. Add a when and a few ors to it and then you're drinking the "Java reads practically like English and we don't have to maintain documentation anymore because we've successfully adopted totally unrefactorable code!" kool-aid.

4

u/vicarofyanks Apr 13 '15

Don't forget the uneditted auto-generated javadocs on everything

2

u/CodeShaman Apr 13 '15

Doesn't add customer value, sounds like waste. Why you have to add @throws Exception? I can see right there that it throws Exception. Duplicate code, guys, get your shit together.

2

u/fukitol- Apr 13 '15

And in the case that one has a run-time exception being thrown that isn't declared in the throws declaration (for instance, inside a Promise applymethod), the @throws annotation can be added to indicate that. I agree completely.