Baseball Cube link on every player page
Saturday, August 12th, 2006In response to popular demand, I’ve added a link to The Baseball Cube on each Minor League Splits player page.
However, it isn’t perfect (and it’ll probably stay that way). Instead of linking directly to a player’s TBC page, the link goes to the TBC search page results for the player’s last name. There are a couple of reasons why I did it that way.
TBC’s naming convention for player pages is unique–rather than using Minor League Baseball’s numerical player IDs like the official site, Minor League Splits, and Baseball America does, it just uses the player’s first and last name, and if the player name isn’t unique, it adds a number at the end. (E.g. “John+Smith2″) It wouldn’t be all that difficult for me to put together a database of those IDs, but that would means adding yet another query to each player page, slowing things down another notch.
Since the only real solution to that is the player search page, I had to decide how much information to feed the search. Another problem with my database and TBC’s communicating with each other is the first names we choose for players. Mine usually come from the first instance of that player’s name in a gamelog. Often, especially for first year players, that means I have a more formal name, like “Christopher Errecart” instead of “Chris Errecart.” Because of that, the search page my TBC links send you to uses only the last name and first initial. It means you have quite a few results to sift through if you search for, say, C.J. Smith or Delwyn Young, but I think it’s a nice compromise between getting too many results (using only the last name) and sometimes getting none (using the full name).
Enjoy!