The Enchanted Tavern
  • Communities
  • Create Post
  • 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
3
fedilink
0

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

lemmy.world

@hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.ml • 2 years ago
message-square
3
fedilink
alert-triangle
You must log in or register to comment.
  • @apprehenticeA
    link
    fedilink
    1•2 years ago

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

  • @DarthFrodo@lemmy.world
    link
    fedilink
    1•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
      -1•2 years ago

      typical OOP progaganda

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml
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.
  • 2 users / day
  • 59 users / week
  • 348 users / month
  • 1.52K users / 6 months
  • 1 subscriber
  • 1.65K Posts
  • 30.3K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org