12

Ever been tasked with a modification, you see the code and think WTF??!!!??

Yes it was me who wrote it, what was I thinking? So I going to have to refactor this rubbish, so I set about tidying it up and realise that this is far more complex than I remember. When I finally get to grips with every aspect of it, I come to the conclusion that actually this is quite clever.

Straight up removed the changes, walked away from the original code and got on with what I was supposed to be doing to start with. Oh well, guess I got to grips with something I had forgotten.

Comments
  • 1
    ADR Tools

    A command-line tool for working with a log of Architecture Decision Records (ADRs).

    https://github.com/npryce/adr-tools
  • 0
    @cprn git or comment?
  • 0
    @crowdsurfer I don't know what you mean but it's a good practice to record your architectural decisions for exactly this reason and what I linked is a tool that makes it easy and lets you keep your ADR in the repository alongside the code it describes.
Add Comment