Remix.run Logo
jay_kyburz 5 hours ago

Even in video games, I avoid inheritance, I always much prefer composition. Build a complex object from many small objects, then vary behavior with parameters rather than deriving a child class and overriding methods.

TZubiri 4 hours ago | parent [-]

Right that's still OOP.

jay_kyburz 21 minutes ago | parent [-]

Oh yeah, just saying inheritance is the part I don't like.