Hacker Newsnew | comments | show | ask | jobs | submit login

Why do Tennent's Correspondence and Abstraction Principles matter? That's missing.



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).

-----




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: