• RalphWolf@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year 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
      2
      ·
      edit-2
      1 year ago
      // This function calculates applicable discounts given a customer's loyalty status
      // STOP BEFORE SEASON 8 DEXTER PLEASE 
      fun calculateDiscountRate(loyalty: LoyaltyStatus): Set<Discount> {
      ...
      
      • NeatNit@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        That ... at the end made me think there was more code and my client was refusing to show it to me no matter what I did.