About 2 years back, I started on one of General Assembly’s ‘Web Development Immersive’ courses. During that, we were required to complete a number of projects, the first of which had to be a game. I’d like to use that project as the base for understanding more about the best way of tackling the refactoring of a functioning web app.
For various reasons, I’ve needed so step back from coding as a career choice, and have inevitably become somewhat rusty. I would though like to get my head back into that space again, and both re-learn and add to what I think I once knew.
The application is a re-creation of ‘Minesweeper’, the Github for all the code being found here - https://github.com/christopherallanperry/WDI_PROJECT_1
And a working installation located here - https://frozen-eyrie-56010.herokuapp.com
The kind of things I’d like to understand are:
- Can the overall structure be improved?
- Everything is declared at the global level, so how best to move away from that.
- Could more use be made of ES6?
- Might modules be appropriate in such a setting?
- Perhaps not exactly critical, but I’ve always suspected the same result could be achieved in rather less lines of code - is that realistic?
I’m not particularly looking for code, more the approach and better ways to think about things, but if examples would help that, then I’m happy to see what comes up.
I’d like to think that this might become a useful resource for other members in the future, or at least something that could be distilled down into that.
Is anyone game to give it a go?