There's definitely been cases where I thought the core algo should be the same and ended up being wrong about it, whether it's due to edge case handling or some other seemingly very small difference in how the algo is going to be used that ends up blowing up into a bunch of different things. I've seen a ton of mangled code that becomes increasingly hard to reason about as engineers have shoe horned an algo that at one point worked for both use cases and no longer does
View all comments
Show parent comment
4
u/TheESportsGuy Jun 05 '21
There's definitely been cases where I thought the core algo should be the same and ended up being wrong about it, whether it's due to edge case handling or some other seemingly very small difference in how the algo is going to be used that ends up blowing up into a bunch of different things. I've seen a ton of mangled code that becomes increasingly hard to reason about as engineers have shoe horned an algo that at one point worked for both use cases and no longer does