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

Agreed, +1 This pattern goes beyond JS and is very helpful for supporting tests; you've already factored out your validators. There's always going to be stragglers but you can define and push in an extra check on the spot (i.e. using lambda funcs at least in JS).



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

Search: