Hacker News new | ask | show | jobs
by valand 1274 days ago
Be even more DRY by having function that does quite a bit of everything, accepts different arguments, and returns different type. You only need to supply different strings to the first parameter