Re:Was object-oriented programming a failure? (2015)
by erikpukinskis on Sunday March 12, 2017 @11:43AM
(#13851147)
> Why are there still those who think any advocate of OOP is an advocate of "OOP or Nothing! All things are Objects!
Well, that's what the OP in OOP means. It means you are oriented towards objects, and away from everything else.
What's the difference between writing a test and doing TDD? In TDD the tests are the center of your universe.
Plus there's the fact that "Everything is an Object" was a very common slogan for OOP.
Of course you can write non-objects in your object oriented code... An object is made of non-objects! But OOP means when you are asking architecture questions you sort out your names and your methods first, and functions fill in the gaps.
Compare to (old school) JavaScript where everything is a function to start, and you add prototypes and methods only when you really need them. (RIP JavaScript, long live OOP/ES6)
Well, that's what the OP in OOP means. It means you are oriented towards objects, and away from everything else.
What's the difference between writing a test and doing TDD? In TDD the tests are the center of your universe.
Plus there's the fact that "Everything is an Object" was a very common slogan for OOP.
Of course you can write non-objects in your object oriented code... An object is made of non-objects! But OOP means when you are asking architecture questions you sort out your names and your methods first, and functions fill in the gaps.
Compare to (old school) JavaScript where everything is a function to start, and you add prototypes and methods only when you really need them. (RIP JavaScript, long live OOP/ES6)