ENGINEERING ★ 49 upvotes 2012

How We Built USA Today's Election Night Maps

Retrospective Overview & Key Insights

Distilled analysis of the business dynamics, operational challenges, and strategic takeaways:

In this technical retrospective (2012), @willwhite shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

High-signal perspectives, counter-arguments, and peer founder insights debated on Hacker News (19 total discussions):

DA @danso Peer Contributor

I learned about this: R2D3:

Since it doesn’t get bogged down with supporting legacy browsers without SVG support, we switched over to R2D3 for versions of Internet Explorer less than IE9. https://github.com/mhemesath/r2d3/

It's that easy to provide IE support for D3?

PO @porterhaney Peer Contributor

This is a great write-up.

I love seeing your thought process on how you tackled the project. The bonus playback of realtime results and the not preloading county data are two very good examples of problems that need solving when you take on a project like this. Super write up.

DF @dfan Peer Contributor

I really like that map with overlaid discs representing the number of EV for each state. I think it's much clearer than the usual method of distorting the map to make each state's area proportional to its number of EV.

JA @jawns Peer Contributor

I've worked on real-time displays of election results data in a newsroom setting, so I know how much planning goes into something like this. This looks great!

WE @webXL Peer Contributor

http://www.usatoday.com/election-2012/results/

Broken here. Chrome and FF.

HISTORICAL ERA Web 2.0 Genesis (2007–2013)
COMMUNITY SCORE ★ 49 points
TOTAL DISCUSSIONS 19 comments
TOPICS & TECH STACK: