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