Re:Ask HN: What side projects are you working on?
by sehr on Thursday February 27, 2014 @02:41PM
(#7314457)
Site seems to be down.
But when you're finished, hawk this on /r/nba. Lots of devoted fans there, and contributions are very much appreciated.
Re:Ask HN: What side projects are you working on?
by kohanz on Thursday February 27, 2014 @02:45PM
(#7314486)
Thanks for the feedback! It's running on a single droplet on DigitalOcean, so my guess is it can't handle even the slight amount of traffic I'm getting from this HN post. Beyond server-side caching, I think my code is fairly non-optimal.
If anyone has any tips for serving up a site like this with limited resources, feel free to teach me.
Re:Ask HN: What side projects are you working on?
by sehr on Thursday February 27, 2014 @02:55PM
(#7314559)
I don't know if you're aware, but the community section of Digital Ocean has some informative articles on stuff like this, there was actually one posted today about scaling Ruby on Rails applications.
Either way, it's a good problem to have!
Re:Ask HN: What side projects are you working on?
by kohanz on Thursday February 27, 2014 @03:05PM
(#7314633)
Thanks for the link, I will definitely take a look at that. I have found some of those articles to be useful, although external blog posts and gists have proved just as valuable. One recent accomplishment was automating deployment to a single command with Capistrano. Took me a lot longer to set that up than it probably should have, but feels great now :)
Re:Ask HN: What side projects are you working on?
by dsschnau on Thursday February 27, 2014 @03:29PM
(#7314797)
Where do you get your data for the games? I've been thinking about doing something similar for NHL...
Re:Ask HN: What side projects are you working on?
by kohanz on Thursday February 27, 2014 @03:42PM
(#7314892)
Scraping. There are a ton of sources for NBA, be it nba.com/stats, ESPN, CNNSI, etc.
Many of these sites serve up their play-by-play on a JSON feed, which makes it even easier. However, I must warn you, the data is not as clean and robust as you may like. A large part of my work was implementing a cleaning algorithm to infer missing data.
Note: I am not a web developer, so this project has been mainly to teach myself a new technology (Rails, primarily). It is very much a work in progress. Also, clearly, I am not a designer and am not really sweating that for now.
http://recappd.com/games/2014/2/24