How to test code that wasn't designed for testability | Dark Hacker News