Login
You're viewing the ruby.social public feed.
  • Oct 19, 2026, 7:56 PM

    @tisba I honestly thought composition over inheritance is a given, or a common sense, but the amounts of concerns I had seen in the past was insane, and usually not necessary. I don't get it. A simple plain class and object can do most of things. It defines the dependency so much better, and also much simpler, and easier to understand.

    💬 1🔄 0⭐ 2

Replies

  • Oct 19, 2026, 8:02 PM

    @godfat 💯

    I have to think some more about it and collect my thoughts. I suspect that this is not as common sense as we might think. And for Rails’ Concerns I also suspect that many simply don’t fully grasp how this works.

    💬 1🔄 0⭐ 0
  • Oct 20, 2026, 3:24 AM

    @tisba You remind me mixing was (not sure now) advertised as being not multiple inheritance yet Rails concerns are kinda making that back 😹 Maybe in some way it's just intuitive and straightforward, and the complexity is more implicit and people don't realize that before it's becoming a mess? Similar to a small God is convenient before it becomes a big God. Not sure since this theory can probably be applied to all slops, so not specific to concerns.

    💬 0🔄 0⭐ 0