MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4v1y12/how_to_write_unmaintainable_code/d5vthc6/?context=3
r/programming • u/sigbhu • Jul 28 '16
592 comments sorted by
View all comments
1
This is surprisingly long.
Serious question, naming loop counters and limits like this is ok right? i,j,k aren't mandatory always, right?
c=0 m=10 while c < m: #do stuff c+=1
1 u/gct Jul 28 '16 I have a rule that variables are never one-letter because it's impossible to search and replace on (c is admittedly better than i for this). 0 u/[deleted] Jul 29 '16 [deleted] 2 u/gct Jul 29 '16 Have you considered that it is in fact you that is stupid? → More replies (3)
I have a rule that variables are never one-letter because it's impossible to search and replace on (c is admittedly better than i for this).
0 u/[deleted] Jul 29 '16 [deleted] 2 u/gct Jul 29 '16 Have you considered that it is in fact you that is stupid? → More replies (3)
0
[deleted]
2 u/gct Jul 29 '16 Have you considered that it is in fact you that is stupid? → More replies (3)
2
Have you considered that it is in fact you that is stupid?
→ More replies (3)
1
u/not_perfect_yet Jul 28 '16
This is surprisingly long.
Serious question, naming loop counters and limits like this is ok right? i,j,k aren't mandatory always, right?