3 ms·
I guess - but I feel like you'd call it an "error" rather than a "smell". Better to just teach people data structures rather than which constructs they should b
by jnty 9y ago
I guess - but I feel like you'd call it an "error" rather than a "smell". Better to just teach people data structures rather than which constructs they should be afraid of. Approaching it "sideways" like this just leads to people going "I heard that loops can be bad, so I copied and pasted that line 25 times instead".
- jayd16 9y agoIts a smell and not an error because it works perfectly fine and it actually is perfectly fine for now because the n for that linear search is low.