Celebrate MLB Opening Day Ruby Style...
In my latest blog post, It’s Baseball Season, I describe two baseball projects in Ruby. One is an API for working with live MLB statistics, Gameday API, and the other is a Rails app that lets you view live boxscores and play-by-play data for any MLB game, Baseball Tracker.
Comments
That looks awesome. I took a gander at the code for Baseball Tracker and I was wondering why you don’t use any models. I know all the data is from an API instead of your own db, but I’d still be interested in the rationale for this.
In response to your question about why there is a lack of models in the Baseball Tracker app. The primary reason is that the things that you would normally think of as the “models” are incorporated in the Gameday API. These are objects such as Boxscore, Player, Game, Team, etc. In building Baseball Tracker, I wanted to keep Gameday API intact and not move anything out of it. Baseball Tracker is really just a relatively thin layer over the Gameday API that presents some data in a set of web views.
Post a comment