• DarthFrodo@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    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.

    • PeWu
      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
      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.

    • HakFoo@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      You can, but who ever does?

      I suppost that’s why some languages offer autogenerated minimal getter/setters, but that still seems like the same thing with extra steps.

    • PeWu
      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
      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.