Visit Official Exploding Ads Website

Monday, August 24, 2015

Fede_V comments on "The Power of Power Cycling"

By Fede_V

As an extreme example of power cycling, I was refactoring a slow function in some simulation code and replacing some hash-based look ups with some pointer arithmetics.


I must have spent several hours writing and re-writing that function, and I still couldn’t get the tests to pass. I went over all the code character by character, debugging, etc, and I just couldn’t figure out where it wasn’t working. Eventually, I just nuked all the work I did that morning, rewrote that entire routine from scratch, and it worked perfectly.



link


See more about this article by clicking the link here: https://news.ycombinator.com/item?id=10108653



Fede_V comments on "The Power of Power Cycling"

No comments:

Post a Comment