Ask HN: Help me refactor this code please (Ruby) | Hacker News Reader