Alright, so this codebase looks like it was attacked by wild badgers and needs to be completely refactored as soon as possible. It's riddled with bugs, isn't readable, isn't documented; thus making it nearly impossible for other developers to maintain and scale. At a minimum we should be following a style guide so that code is at least readable (and i'll provide links below). We also need to separate everything into actual small and reusable components and create tests for each component. Lastly, we absolutely need code to be documented. A good example of well documented code IMO is the babel js packages where every method, function or hacky operation has a description.
Alright, so this codebase looks like it was attacked by wild badgers and needs to be completely refactored as soon as possible. It's riddled with bugs, isn't readable, isn't documented; thus making it nearly impossible for other developers to maintain and scale. At a minimum we should be following a style guide so that code is at least readable (and i'll provide links below). We also need to separate everything into actual small and reusable components and create tests for each component. Lastly, we absolutely need code to be documented. A good example of well documented code IMO is the babel js packages where every method, function or hacky operation has a description.
https://github.com/airbnb/javascript https://github.com/felixge/node-style-guide https://facebook.github.io/react/docs/thinking-in-react.html https://github.com/babel/babel