Tom Ritchford
Jun 18, 2024

--

In a long and successful career, I have never once put "OOP" on my résumé. To do so sends a clear message that you're a junior programmer.

C++ is not an object-oriented language - it's a multi-paradigm language. You can write object-oriented code, but you can also write functional code, and generic code, and you can mix all three.

As I go on, I use fewer objects and more "Plain Old Data" with functions that operate on it. "Plain Old Data" is like a C struct - something which has only public data and no methods at all. Don't get me wrong, there are plenty of things that naturally map into objects, but an awful lot of "objects" don't need to be that way.

--

--

No responses yet