• vampira@lemmy.eco.br
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

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

    • qprimed@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      this resonates so much…

      “ok, which one of you crackheads decided an unconstrained recursive C function was a good idea right her… oh.”

  • RalphWolf@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 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
      1
      ·
      edit-2
      5 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 
      ...