This ruby code needs refactoring | Hacker News Reader