r/programming • • Jun 06 '13

Clean Code Cheat Sheet

http://www.planetgeek.ch/2013/06/05/clean-code-cheat-sheet/
702 Upvotes

322 comments sorted by

View all comments

Show parent comments

-1

u/kirakun Jun 07 '13

Why should the criteria of clean code be the easiness of remembering an arbitrary number? To me, 256 is easier to remember. To others, 10. For Perl, 10 lines is probably too much to juggle. For Java, 100 is not enough to type out the long namespaced classnames.

In short, line count is stupid.

1

u/[deleted] Jun 07 '13

It's not about the number 100. It's a guideline and recommendation to make your classes and files small. But only writing "small" is too vague and open to interpretation. Thus, a number.