Hacker News new | ask | show | jobs
by Tomis02 759 days ago
> But the idea of encapsulation in an object is there in the most popular modern languages.

Encapsulation is not specific to OOP at all. C is not OOP and yet it has encapsulation just fine.

> If the concept of calling `my_list.is_empty()` instead of `is_empty(my_list)` is "OOP", then I think it is actually still very much in fashion and for good reasons.

You're absolutely right, it's fashion.

> And that's the new "trend": dropping class inheritance, "Composition over inheritance".

New trend, huh? You realise that that saying came out 30 years ago? It took that long for the brainwashed OOP masses to even acknowledge that inheritance is bad.