4 ms·
I remember someone saying simple code implementing well selected algorithms beat optimized code implementing poor algorithms. Although, I would have to agree w
by protomyth 8y ago
I remember someone saying simple code implementing well selected algorithms beat optimized code implementing poor algorithms.
Although, I would have to agree with your statement.
- adrianN 8y agoSelecting algorithms well is not trivial. How many people think about the difference between linear search in a small array versus just passing maps around without calling it optimization? It also doesn't matter as much if your design is a mess of abstraction and indirection that spends 95% of its time chasing pointers and inspecting maps.
- protomyth 8y agoNo, its not. Frankly, I haven't seen any tools to help which is an amazing shame. Its something that as a profession we need to be better at. > It also doesn't matter as much if your design is a mess of abstraction and indirection that spends 95% of its time chasing pointers and inspecting maps. Well, that's the other side of the problem of picking decent algorithms is picking a reasonable structure for your program.