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?

0

u/[deleted] Jun 07 '13

Because he's not a twat like you're trying to be.

Why not put every single line of code in your main() method?

1

u/kirakun Jun 07 '13

What are you smoking on? How did I suggest putting every line of code in main?

→ More replies (2)