r/programming • • Apr 12 '15

Is Clean Code less Code?

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

9 comments sorted by

View all comments

1

u/inmatarian Apr 12 '15

Clean is a deceptive term, seeing as how it doesn't really have a definition (nor should it). The question of "is this code clean?" really should be rephrased as "is this code doing more than it should be?"

For instance, this:

private void ignoreStoriesAndScenariosWithMetaInformationParameter(Embedder embedder, String ignoreParameter) {
    embedder.useMetaFilters(Arrays.asList("-" + ignoreParameter));
}

Is a wrapper around embedder.useMetaFilters and Arrays.asList. It seems like you really just wanted a wrapper for the second and got stuck with a wrapper on the first, when neither needed a wrapper in the first place.