21

That moment when you have refactored so much shit, then really broken the project, but can't see yourself doing a git revert because you had invested so much time and know ultimately it *needs* these changes...

Thank god I fixed it! 😌

Comments
  • 2
    Two words: regression tests

    Google it. It's what they're for.
  • 3
    Well, ideally, you run your unit tests after each Refactoring step and check if things still work.
    But of course, this has happened to me, too ;)
  • 0
    Will be setting up all tests shortly, this is a standalone project and in its very early stages, so it wasn't going to affect anything else just yet. The changes I was making we're all from the template I was copying from another project.

    Got in to a small rabbit hole of unterminated div's etc. - was always confident I'd find the culprit 😏
Add Comment