Cleanup - Thewessen/tic-tac-toe_ruby_backend GitHub Wiki
Backend
Working with Ruby on Rails, and reading the docs in the meanwhile, I realized I
could have started much better: ussing the --api
flag when creating a new
project. This removes all the unnecessary packages, and removes npm's
package.json entirely from the project.
In the cleanup process, I wanted too use this ability. Leaving only the
necessary files for this backend too work. Setting up the proper requirements
in the config/application
file was the only tricky part. The rest was
plug-and-play.
In the process, I also removed some unnecessary folders, some of which were empty anyway. It gave me some ensurance that I knew what was necessary and what not.
Working with Ruby on Rails feels very intuitive to me so far.
Frontend
For the frontend, I didn't do much clean up. If I would remake this app, I would have done alot of things different, especially the databindings and all the over complicated routing. But in the end, this app also surved a learning purpose, so I'll leave it as is. It creates a good conversation anyway.
I creating some simple bindings where it would be convenient. But for the logic service, I kept it as is. Doing bindings on nested array's is a bit more complicated, and the whole app is depending on the logic to function properly. In my last hours of working on this app, I didn't want to make any drastic changes.