minigubben's lemmy
  • 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
11
fedilink
12

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

lemmy.world

hairinmybellybutt@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
11
fedilink
  • DarthFrodo@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    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

    • jazz@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      also const correctness in languages that support that concept

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.

  • 257 users / day
  • 2.08K users / week
  • 2.52K users / month
  • 4.01K users / 6 months
  • 2 local subscribers
  • 36.4K subscribers
  • 1.75K Posts
  • 36.2K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org