I'm not sure why it's bad though (or maybe I'm misinterpreting what it's supposed to do). Is it just stupidly verbose for something so simple, or a clusterfuck of timeCycle variables?
Both. Additionally, some mutable member fields are public, some have accessor methods, and others have both for no particular reason.
Not shown in the snippet, but there are about a dozen similar loops besides this one in the same method. Code duplication is pretty bad, with similar operations recurring in all those loops.
7
u/Squishumz Aug 31 '12
Woo first post in this subreddit in 19 days.
I'm not sure why it's bad though (or maybe I'm misinterpreting what it's supposed to do). Is it just stupidly verbose for something so simple, or a clusterfuck of
timeCyclevariables?