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

Great article. Even smart people can get tired at some point. In fact reducing cognitive load IS the smart thing to do. It's good to bring awareness to this. I like simple rules that help reduce cognitive load, and can be shared in pull requests. Simple things like early returns.

Rules like "limit the number of lines to 300" are meant to be broken. Some 2k-line code files are easy to understand, some are not. It depends. It always depends.



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

Search: