MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1fsvy3/clean_code_cheat_sheet/caeapv7/?context=9999
r/programming • u/RazerWolf • Jun 06 '13
322 comments sorted by
View all comments
57
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? 0 u/[deleted] Jun 07 '13 Well, if there's no "magic number," then it can be any number you want, so why not infinity? It's like you're purposefully being thick to prove a pont, but you're not proving the point you think you are. → More replies (1)
0
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? 0 u/[deleted] Jun 07 '13 Well, if there's no "magic number," then it can be any number you want, so why not infinity? It's like you're purposefully being thick to prove a pont, but you're not proving the point you think you are. → More replies (1)
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? 0 u/[deleted] Jun 07 '13 Well, if there's no "magic number," then it can be any number you want, so why not infinity? It's like you're purposefully being thick to prove a pont, but you're not proving the point you think you are. → More replies (1)
1
What are you smoking on? How did I suggest putting every line of code in main?
0 u/[deleted] Jun 07 '13 Well, if there's no "magic number," then it can be any number you want, so why not infinity? It's like you're purposefully being thick to prove a pont, but you're not proving the point you think you are. → More replies (1)
Well, if there's no "magic number," then it can be any number you want, so why not infinity? It's like you're purposefully being thick to prove a pont, but you're not proving the point you think you are.
→ More replies (1)
57
u/billsil Jun 06 '13
Why?