4 ms·
That fact that you have to go through so many references to define the word object exactly proves my point. You can just read this wiki ... https://en.wikiped
by foobar_ 6y ago
That fact that you have to go through so many references to define the word object exactly proves my point.
You can just read this wiki ...
https://en.wikipedia.org/wiki/Modular_programming https://en.wikipedia.org/wiki/Modular_programming
Modularity is the very fabric of most engineering disciplines. As opposed to that, OO is a holistic "ideology" about using classes and inheritance to design software. I call it an ideology because despite its abysmal failures people still refer to it in positive terms.
Apart from Android not one software from the list uses inheritance and classes. OO has shown a narrow success in GUI.
In C you don't have modules and interfaces, so what you do is define a struct with pointers. Now you can compile any .c file which follows this interface and dynamically load it into the software.
Python / Perl / Javascript / Ruby ... support this. Remember how much code is resused in the packages downloaded when you do pip install ? Thank modules for that. Not OO. Because of duck typing these dynamic languages don't need interfaces but you can find code snippets that implement it with keywords like pass.
In modular coding you get libraries, extensions and plugins. I find it sad not many people use these terms and prefer to honk OO every time.