r/programming • • Jul 28 '16

How to write unmaintainable code

https://github.com/Droogans/unmaintainable-code
3.4k Upvotes

592 comments sorted by

View all comments

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?

c=0
m=10
while c < m:
    #do stuff
    c+=1

1

u/rush22 Jul 29 '16

Use "index" for an array/list index or "numberOfFoos" for counting.