• DarthFrodo@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    1 year ago

    The neat thing is, you can add stuff like range checks and logging for getters and setters without changing every call. Separation of concerns is also vital in larger projects.

    • jazz
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      also const correctness in languages that support that concept

    • PeWu@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Yeah, I need to force myself to do it, cuz it feels so slick and efficient and overall nice. Or am I just dumb and didn’t understand satire of this post.

    • PeWu@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Yeah, I need to force myself to do it, cuz it feels so slick and efficient and overall nice. Or am I just dumb and didn’t understand satire of this post.