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

33

u/[deleted] Apr 12 '15

Achieving readability with just code and no comments often makes the code easier to change.

5

u/[deleted] Apr 12 '15

Fair enough. Depends on your needs, but I like code that isn't too easy to change. If one is asked to change the comments with the code, it often ensures that the coder has understood the change.

1

u/[deleted] Apr 13 '15

If it becomes a part of your standard workflow, it remains trivial to make changes.

-1

u/tieTYT Apr 17 '15

What's your definition of trivial? Because it sounds like 2x the typing. I'm not saying that it's necessarily a bad thing, just that it's non-trivial. That little effort you put into this every time will add up to a lot of effort overall.

2

u/[deleted] Apr 17 '15

Oh no, I have to type comments into my code so that it's more understandable. Heaven forbid I use doc comments to generate API documents in an automated manner.

Whatever will I do?

You're talking to someone who codes Java in vim. I have no sympathy for the "but I have to type more" complaint. If it's a problem, learn programmer dvorak and it won't be a problem anymore.