-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Judge's feedback #1
Comments
config/application.rb
Migrations
Responder model
Emergency Model
Controllers
|
First of all, thanks for your input! I've made some changes according to the list, mostly moving dispatchers around. I still don't see them as concerns, /lib is still needed to be put in autoload_paths, so I put them in models/dispatcher. Is that approach okay? And I feel somewhat conflicted about other points or just have questions:
Now I have all foreign and natural keys covered, plus columns I use in scopes. Does adding index for column makes it faster to reduce over it?
Scopes seems to be the exact same as the class methods, and I think scopes are worth writing when actually filtering a subset of instances. Am I wrong?
I am stuck in the middle with those: on the one hand system has obvious natural keys(code and name), so there is no need for usual default id, on the other rejecting those yield dirtier code. So in such scenarios it's better to be redundant and keep numeric ids?
I like
Moving load of variable to methods would be a nobrainer, if setter didn't have second line throwing exception. I could write in one line with |
A few other comments: General
EmergenciesController, RespondersController
Emergency
Dispatcher classes
|
Thank you for your comments!
|
Verified score of |
Your score breakdown: 236.5 points total
Hope to see you on the next challenge! |
Placeholder issue for judge's feedback.
The text was updated successfully, but these errors were encountered: