ctn-archive / nengo_gui_2014

HTML5 graphical interface for Nengo -- now obsolete! Please use https://github.com/nengo/nengo_gui instead
Other
6 stars 0 forks source link

How to refactor main.js #142

Open Seanny123 opened 9 years ago

Seanny123 commented 9 years ago

Right now, main.js is big, flat and kind of ugly, despite being delightfully functional. After studying closures and prototypes, which is how OOP is implemented in JavaScript, I'm still a bit confused on how to move forward and have asked the Internet to help me out.

What does everyone think?

jgosmann commented 9 years ago

Can't help a lot here, but maybe you want to take a look at the changes I made in in the Nengo vis branch. Apart from ripping out the editor, it is mostly untouched. But two changes were important as far as I remember:

We might also want to think about where to fix this ...