Refactoring and improvements
At this point, the application that we've been building is pretty much complete! Before we iterate anymore on the project and continue to build it out and make it ready for production, we should probably consider some refactoring and/or general improvements. Some areas that I would personally take a look at to refactor and/or rewrite to improve the application's performance and overall sanity are as follows:
- I might rethink working directly with models within the controllers so much, and instead create a utility that I can wrap a lot of that noise in, and rely on more basic CRUD calls to my models and provide only a
callback
to each. This is most visible in theimage
controller, withlike
,comment
, andremove
. - There is literally no validation in the project that we wrote, and that's mostly for brevity. In reality, we should have included validation on any input fields a user interfaces with. Validation should be provided on both the frontend via jQuery or plain...