Writing Testable Frontend Javascript Part 2 – Refactor away anti-patterns | Hacker News Reader