News for hackers. Stuff that matters.
Re:Golden rules for becoming a better programmer by lomnakkus on Wednesday January 27, 2016 @05:41AM (#10979350)
In fact you might also want the un-optimized code around and run the optimized version "against" the un-optimized version (in tests) to see if they actually do the same thing.
Re:Golden rules for becoming a better programmer by joshka on Wednesday January 27, 2016 @01:10PM (#10981722)
Extract an interface (IFoo). Implement Foo : IFoo and FasterFoo : IFoo. Write tests to confirm all implementations of IFoo act equivalently. Write performance characteristic tests around FasterFoo.
Re:Golden rules for becoming a better programmer by lomnakkus on Friday January 29, 2016 @01:48PM (#10997465)
Exactly.