Full threadkahlonel·A great way to get rid of global data (mutable or not) is to write testable code, and then write unit tests. I'm not a big fan of TDD or unit testing, but it does force you to think in terms of "contexts".View on HN