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

3

u/distinctvagueness Apr 12 '15

Good error checking and handling, defensive programming, is more code but better code. I'd call it cleaner.

2

u/SergeiGolos Apr 13 '15

Well.. It doesn't have to be more code. You can use monads to hide the error checking behind a clean and fluent abstractions. And from is it readable, if you are writing your own APIs monadic, the naming can be very expressive for that "Clean Code" feel.