Cult I Mean Group
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago

object.setobject(object.getobject().object).to_object()

lemmy.world

message-square
7
fedilink
18

object.setobject(object.getobject().object).to_object()

lemmy.world

hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
7
fedilink
alert-triangle
You must log in or register to comment.
  • DarthFrodo@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 years 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.

    • hairinmybellybutt@lemmy.worldOP
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      2 years ago

      typical OOP progaganda

  • apprehentice@lemmy.enchanted.social
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Imagine not using a language with setters and getter built in lol

  • bi_tux@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Every IT profesor, ever

  • metarmask@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    That’s not a new way to change data, it’s reading it.

  • alokir@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Wait until you hear about the concept of properties in languages like Javascript, C#, Kotlin and many others.

    • relevants@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      At least for Kotlin it’s literally just syntactic sugar for getter and setter methods. I really like them, don’t get me wrong, but it’s just the bottom approach masquerading as the top approach

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 503 users / day
  • 1.05K users / week
  • 3.18K users / month
  • 9.52K users / 6 months
  • 1 local subscriber
  • 37K subscribers
  • 1.78K Posts
  • 34.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org