4 ms·
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 l
by lscharen 12y ago
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;
- adestefan 12y agoOnce 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.
- PixelsCommander 12y agoThis is the missing thing, will add. Thanks guys!