Hacker News new | past | comments | ask | show | jobs | submit login

Exactly. Start with the straight-ahead linear approach and factor out once it's unwieldy.

Same thing for copy pasta funcs -- the first copy is fine, the second one may be too, but after that consider extracting to a parameterized func (a permutation of the Go Proverb "A little copying is better than a little dependency.")




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: