Lurker News
What are you working on? What have you been curious about lately?

Comments (1,123) 974 threads

Show all comments

Showing thread 17 of 974

bretthopper2 replies#
I worked at a sports company forever ago, and ever since then, I've wanted to build my own NBA scores + stats site. After a few false starts over the years, I have a new concept called Center Court that I'm so excited about.

It's primary purpose is for live boxscores because all of the major sports sites have terrible UI/UX experiences. I always defaulted to ESPN.com but it's so slow and awful. Center Court is basically a bridge between espn.com (or nba.com) and more advanced stat focused sites that don't offer a good live experience.
The technical implementation behind it is quite novel in this space too. Instead of storing computed statistics in a database, I store raw play by play payloads immutability and everything else is derived from those and can be trivially rebuilt so the event log is a derived cache of the payloads. Every stat on every page is a pure fold over the event log at request time; no derived number is stored.
This enables some powerful features like being able to re-derive a game's entire state at any point of the game (or even a time range). Example game to try out: https://centercourtlive.com/game/0022600197
The site is meant to be extremely fast. It's all server-side rendered with progressive JS enhancements. URLs are immutable and cached behind a CDN.
https://centercourtlive.com/

draftsman2 replies#
Where do you get your data?
Shocka1#
I would like to know this too - I have historically used ESPN data, but have issues with it here and there.
draftsman#
Thanks! I had no idea the NBA exposed this much data. Bookmarked your site too. Way better than anything I’ve used before.
forsalebypwner1 reply#
I really like the look of the score-over-time charts, nice work.

What does the "No garbage time" button do underneath that chart?

bretthopper#
The term/concept is borrowed from https://cleaningtheglass.com/stats/guide/garbage_time

So that button will select the whole game _excluding_ garbage time. I really need an About page on the site to explain lots of concepts and features; coming soon! (and a changelog)