beaqlejs icon indicating copy to clipboard operation
beaqlejs copied to clipboard

refactoring beaqle.js

Open nise opened this issue 6 years ago • 3 comments

The file beaqle.js has more then 1400 lines of code and contains about 53 functions. This is way too much. I would recommend to refactor the code to make it more clear and easy to extend. Currently there are many redundant functions.

At least each type of test should be stored in a separate file. From there you can call interfaces methods provided by the core of beaqle. The core should have multiple components such as the Audiopool, utils, and the listening test among others.

nise avatar Jan 30 '19 21:01 nise

Yes, that would make sense as the file has grown bigger and bigger.

seebk avatar Jan 31 '19 06:01 seebk

pull request greatly appreciated.

timobaumann avatar Jan 31 '19 09:01 timobaumann

I will see what I can do. So fare I've simplified a few functions and features that I did not need for my own experiments.

nise avatar Jan 31 '19 09:01 nise