3 ms·
Is this really an explanation of why manually iterating over a list is simpler than just calling a method? Get is simpler precisely because it hides the comple
by parenthephobia 9y ago
Is this really an explanation of why manually iterating over a list is simpler than just calling a method?
Get is simpler precisely because it hides the complexity.
> Or maybe "Why aren't you using your language's library methods to loop over that list?"
What makes those methods not subject to the "hiding complexity" objection?
- khedoros1 9y agoIt's an ill-considered stream of consciousness where I wasn't clearly separating "simplicity of interface" from "simplicity of implementation". Part of what I was going for is that a clean interface might hide a complex implementation. If you've followed rule 1 and see that "Get" is a bottleneck, it makes sense to apply rules 3+4, and see if there isn't a simpler implementation than the one provided by "Get".