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

"Don’t hide higher-order functions

Higher-order functions are great, so try not to hide them away. If you’re working with collections, you should prefer to write functions that operate on a single entity rather than the collection itself."

Excellent advice -- and not just for Elixir. I find myself applying this technique often in Python, for example. While the example is fairly simple and contrived, the consequences they note ring true.



Yeah, I misread the bit about about higher order functions (or they edited the article).




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

Search: