We had a stupid problem with migrating from ugly urls to pretty ones.
It was easy to fix in production, but all the dev environments we’d taken for granted would now be broken.
Every proposed solution had drawbacks, which ranged from tedious to complicated. And then, we arrived at one solution filled with hope and promise. This constant promised to
fix multiple problems now, and everything in the future.
As such, it was given the only fitting name: The Obama Constant
Date: Monday January 12, 2009 @ 13:31
Update of /usr/local/cvsroot/web
In directory /tmp/cvs-serv887
Tag: DEV-SCALE abar_pg_template
The Obama constant: fixes multiple problems now, and everything in the future.
One liner in the page-opening section to establish a js constant: ab_url_localpath, which gets its val from AB_URL_LOCALPATH.
Lets us build ajax URLs explicitly w/o running into trouble in dev trees and anywhere else we might have fake "readable" URLs. Everybody wins.
Indeed, everybody wins.