• This comic seems to be about bad programmers, so maybe they don’t have version control 😬 When I’m working on something especially fiddly and I finally get the tests passing, I immediately make a git commit before even trying to clean it up. That way, I have a checkpoint I can return to if I accidentally break anything.

      • thevoidzero@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        8 days ago

        Instead of commit, i just stage them while I do clean ups. So that if I’m successful I stage the cleanup, else I remove the unstaged changes.

        Through if you do local commit and amend it later it’s not that different.