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

From the article:

This is also known as the principle of abstraction, because it means that it is easy to refactor common code into methods that take a block.

I can attest that quickly refactoring code in Ruby is much more straightforward than in JavaScript. In practice, a small reduction in cognitive load means that it's easy to just do it now, instead of putting it off (to the point it never gets done).




Applications are open for YC Summer 2015

Guidelines | FAQ | Support | Lists | Bookmarklet | DMCA | Y Combinator | Apply | Contact

Search: