interactiveinstitute / energy-intelligence

Visualisation touch screen app for SP
1 stars 0 forks source link

Refactor main components #45

Open tjc-schipper opened 11 years ago

tjc-schipper commented 11 years ago

Chart (and some others) seems like a god-class that does almost everything. 700 lines of Coffeescript in one definition is a bit much, separate responsibilities and abstract functionality away into separate objects. Makes it easier to tweak, experiment and add/remove functionality. At the very least it makes it easier to refactor, bugfix and mentally comprehend the program flow and structure.