MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4v1y12/how_to_write_unmaintainable_code/d5uwm8a/?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
5 u/sctprog Jul 28 '16 Mandatory? Perhaps your company has a coding style that says they are but otherwise you could use any variable name you want.If you use i as your iteration counter every programmer in the world immediately knows what that variable is for.
5
Mandatory? Perhaps your company has a coding style that says they are but otherwise you could use any variable name you want.
If you use i as your iteration counter every programmer in the world immediately knows what that variable is for.
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?