8

Yeah so I quickly hacked stuff together. Why make it beautiful before I know whether it will actually do? Hack now, refactor later!

Yeah and then that moment in refactoring where main() gets under 700 lines and I don't know whether what I'm feeling is joy or despair. Gaaaahhhh!

At least I have also written automatic tests so that I can see when something breaks.

Comments
  • 2
    Good luck
  • 2
    @jespersh

    Sometimes I pretend to refactor by just "boxing" stuff to refactor to not see the mess and have nice interface etc
  • 1
    So, now it's better. Maximum function length is 140 lines, and instead of one file with 2500 lines, it's 7 .c and 7 .h files.
Add Comment