RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in