Metaprogramming to DRY out code | Hacker News Reader