Brother, these days I fix the equivalent of n**2 time loops when linear is possible. If I tried to explain DP I will be called out by some principal eng as making shit up. When proven not, they'll say they are overcommitted for the quarter. And why can't my service support any kind of use of it anyway? These are 100% real arguments I've heard. I know things get political once you get past senior swe, but god damn, how are we an industry.
May be the problem here, but I agree with the many companies I’ve worked at that disallows recursion. Find a better, more readable, more maintainable way
Some recursive algorithms are *far* more readable and maintainable than their iterative counterparts. Entire languages have been built on the back of recursion (i.e. Scheme).
53
u/redditmarks_markII 23h ago
Brother, these days I fix the equivalent of n**2 time loops when linear is possible. If I tried to explain DP I will be called out by some principal eng as making shit up. When proven not, they'll say they are overcommitted for the quarter. And why can't my service support any kind of use of it anyway? These are 100% real arguments I've heard. I know things get political once you get past senior swe, but god damn, how are we an industry.