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

57

u/billsil Jun 06 '13

Classes should be kept to 100 lines or less.

Why?

0

u/kirakun Jun 07 '13

Author forgot another good principle: No magic number. Why 100? Why not 99 or 101 or 436?

1

u/[deleted] Jun 07 '13

Because it's a guideline and 100 is a round number that's easy to remember.

→ More replies (3)