DEV Community

Discussion on: OOP a software development mass psychosis

Collapse
 
polterguy profile image
Thomas Hansen

JavaScript has always had OOP, as long back as to the 1990s. It just didn't have class based OOP, but rather prototype OOP.

Collapse
 
jwp profile image
John Peters

It's prototype OOP was sucky, still is.

Thread Thread
 
polterguy profile image
Thomas Hansen

All OOP is bad, but the ability to dynamically attach functions to an object has its use cases.

Thread Thread
 
jwp profile image
John Peters

True. All OOP Is not bad, just your opinion

Collapse
 
jankapunkt profile image
Jan Küster

Which I even prefer over class based oop just to feel great by attaching my standalone function to a class' proto to stay dry but don't mess with inheritance.

And npm itself has no influence on Js as a language. Same issues can happen in other language registries too.

Thread Thread
 
polterguy profile image
Thomas Hansen

attaching my standalone function to a class' proto to stay dry but don't mess with inheritance

Very good point about dynamic features yes ... :)