It's not thoroughly tested, I spent too much time with unit tests and too little testing with a server running.
- What was the hardest part?
Learning new technologies on the go. I had done a few RSpec tests but I wasn't familiar with FactoryGirl for example. Also, I tried to use Redis as the database, ended up spending a lot of time searching for a good ORM gem for it, but either redis-orm and Ohm are a bit buggy. Also, when I tried to use UUID as the primary key for the
Matchmodel, a weird bug happened, as follows:
[53] pry(#<MatchController>)> a === b
=> true
[54] pry(#<MatchController>)> Match.find(a)
=> #<Match:0x00563725d30128 code: nil, game_key: "7f57a2f3-c770-4a63-b0d8-3c88d80a8d30">
[55] pry(#<MatchController>)> Match.find(b)
ActiveRecord::RecordNotFound: Couldn't find Match with 'game_key'=7f57a2f3-c770-4a63-b0d8-3c88d80a8d30
If you could go back and give yourself advice at the beginning of the project, what would it be? Don't underestimate the amount of time this will take. I thought building an API from scratch was easy, ended up having more problems than I accounted for. Also, perhaps I should have sticked to ActiveRecord instead of experimenting so much.
If you could change something about this challenge, what would it be? Well, I would give me more time. Seriously, I don't think there's anything to change, it was just about right.
Log in or sign up for Devpost to join the conversation.