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

Totally agree on this point.

My feeling is that Rule 9 roughly maps to following the Law of Demeter in that you shouldn't chase properties down more than one level, e.g.

Good:

   var something = obj.property;
Bad:

   var something = obj.property1.property2.property3;


Once again this has more to do with the idea that everything must be deterministic. Using a pointer when it's not absolutely needed is just one more place where a non-deterministic runtime issue can crop up.


This is the missing thing, will add. Thanks guys!




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

Search: