maxschram / railschallenge-city-watch

Our first challenge! Build a JSON API for managing your city's emergency services.
0 stars 0 forks source link

Judge's feedback #1

Open ghost opened 9 years ago

ghost commented 9 years ago

Placeholder issue for judges to leave feedback.

ghost commented 9 years ago

General:

Single-table inheritance:

Migrations:

That's bad news in your data model, and it's easily cleaned up.

Otherwise migrations look okay. Since this is a one-off app you could probably consolidate all those migrations into a single one, but I'd say that's not really a big deal here.

Regarding this line, and its close cousin on line 28 in the same controller, are you familiar with this: http://api.rubyonrails.org/classes/ActiveSupport/Rescuable/ClassMethods.html

ActiveRecord callbacks in Emergency model:

Overall This is one of the better initial solutions I've seen so far. I would wait for at least one more judge to provide their feedback.

maxschram commented 9 years ago

Thank you so much for the feedback.

Single-table inheritance:

Migrations:

I was not familiar with rescue_from. I was looking for something like that, but couldn't find it. Perfect.

Thanks again for your feedback!

ghost commented 9 years ago

Verified score of 114 points on the automated scoring, based on the current master branch.

ghost commented 9 years ago

Your score breakdown (you placed 11th, just 2.5 points away from tying for 10th - so close!):

221.5 points total: