smenjas / chemistry-explorer

A chemistry app built with vanilla JavaScript
https://smenjas.github.io/chemistry-explorer/
ISC License
1 stars 2 forks source link

Split data from logic #54

Closed smenjas closed 1 year ago

smenjas commented 1 year ago

All of our JS is in one file currently. This includes all our data about elements, isotopes, and molecules.

A feature of the current architecture is that you can run the app from a desktop computer without installing NodeJS.

A downside is that there is more mental overhead in trying to navigate the codebase. It could be easier to compartmentalize logic, and that might encourage a cleaner design.

If we move to a module-based architecture, that could allow backend functionality, such as automated testing.