• shnizmuffinA
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 months ago

    In your example, without the comment, I’d have no way of knowing it was a customer ID I’m getting, unless the only objects with IDs are customers.

    • relevants@feddit.de
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      10 months ago

      I mean, the example kinda implies that this is on a Customer type. Otherwise you’d have a method getCustomerId instead.