Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> One-liners are fine if you know you'll never need to extend the logic later on. Problem is, how often does that stay true?

Write the simple version first, wait for the need to extend the logic arise naturally, factor out the function and extend.



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

Search: