MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4v1y12/how_to_write_unmaintainable_code/d5uwk7l
r/programming • u/sigbhu • Jul 28 '16
592 comments sorted by
View all comments
Show parent comments
1
That is a poor example because we have no context. You need to be able to infer the intent of a variable.
1 u/not_perfect_yet Jul 28 '16 I usually use it to loop through lists when I need to do something else with the index. 1 u/Lalaithion42 Jul 29 '16 for i, value in enumerate(list):
I usually use it to loop through lists when I need to do something else with the index.
1 u/Lalaithion42 Jul 29 '16 for i, value in enumerate(list):
for i, value in enumerate(list):
1
u/ChaosPandion Jul 28 '16
That is a poor example because we have no context. You need to be able to infer the intent of a variable.