Christian Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
freddo@feddit.nu to Programmer Humor@programming.devEnglish · 1 month ago

OOP at home:

feddit.nu

message-square
21
link
fedilink
1

OOP at home:

feddit.nu

freddo@feddit.nu to Programmer Humor@programming.devEnglish · 1 month ago
message-square
21
link
fedilink
  • tatterdemalion@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    In over ten years of professional programming, I have never used inheritance without regretting it.

    • red_tomato@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      And not once have I regretted removing inheritance.

    • jubilationtcornpone@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      When it’s the right tool, it’s incredibly useful. When it’s the wrong tool, and it often is, it racks up tech debt at an incredible rate.

    • AudaciousArmadillo@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      It works great for technical constructs. E.g. A Button is a UI element. But for anything business logic related, yeah it’ll suck.

      • FooBarrington@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Even then there’s rarely a good reason to use inheritance instead of composition.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 73 users / day
  • 767 users / week
  • 1.76K users / month
  • 1.9K users / 6 months
  • 0 local subscribers
  • 30.6K subscribers
  • 314 Posts
  • 4.65K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: unknown version
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org