• RalphWolf@lemmy.ca
    link
    fedilink
    English
    arrow-up
    21
    ·
    2 months ago

    Document your code like the guy who will be maintaining it is Dexter, and he knows where you live.

    • Aurenkin@sh.itjust.works
      link
      fedilink
      arrow-up
      14
      ·
      edit-2
      2 months ago
      // This function calculates applicable discounts given a customer's loyalty status
      // STOP BEFORE SEASON 8 DEXTER PLEASE 
      fun calculateDiscountRate(loyalty: LoyaltyStatus): Set<Discount> {
          // No seriously you can hide out at my place if you need to just please don't let them do it 
      ...
      
    • AutomaticUpdates@monero.town
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 months ago

      Right. And what do you mean my RegEx is not exhaustive enough and now the database is filled with garbage data?

  • HubertManne@moist.catsweat.com
    link
    fedilink
    arrow-up
    6
    ·
    2 months ago

    I get this one so much. I don’t consider myself a developer because I tend to just touch code but that means I won’t touch any for weeks. Worse I tend to do a lot of poc or boot strapping type of things and so its like there was a user story last pi to check the feasibility of something and now have a user story to get it regularly working in a poc env and I have forgotten everything about that particular system or language or whatever.

  • vampira@lemmy.eco.br
    link
    fedilink
    arrow-up
    3
    ·
    2 months ago

    If I get off my computer for an hour and come back I’m already unable to recognize my code lol

  • biggerbogboy@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    2 months ago

    this was me while writing my website for my screen and media course, I come back a week later and try to interpret these ancient runes inscribed on my IDE, had to stare at it for like half an hour to finally get what I made.