News for hackers. Stuff that matters.
Re:Golden rules for becoming a better programmer by codingdave on Wednesday January 27, 2016 @09:56AM (#10980268)
Because at one point, the code was not optimized, so it already had a function name. Are you really going to rename all instances where that function is called so it is named based on a single commit, instead of its actual purpose?
Re:Golden rules for becoming a better programmer by joshka on Wednesday January 27, 2016 @01:18PM (#10981787)
There are many ways that are non breaking to implement this. I chose a particular one for example's sake. In reality, extracting an interface is a more valuable refactoring, and a likely valid one given that the optimization tradeoff is happening. So MemoryOptimizedFoo : IFoo, SpeedOptimizedFoo : IFoo...