Re:Why you should never ask permission to clean up code.
by stcredzero on Wednesday March 23, 2011 @05:53AM
(#2358737)
I had experience with multiple such examples. At the same time I was developing new functionality, my boss was also tweaking the libraries. So our tester kept telling me my code was broken. Then I'd look into it and find that the Strategy object used to calculate quantities in the whole app was broken. Again
Re:Why you should never ask permission to clean up code.
by nikster on Wednesday March 23, 2011 @10:47AM
(#2359598)
Have you ever heard of unit tests? It's the only solution.
Unit tests, of course, are another hard sell. "what you need to spend just as much time writing tests as you did writing the code??"
But I find the benefits are almost immediate, at least for new code. It's not some abstract thing down the road - it's an immediate boost to dev speed.
As a development manager the thing that scares me isn't the small fix, it's that it takes place on a critical much used library that has potentially far reaching consequences.