News for hackers. Stuff that matters.
Re:Goodbye, Object Oriented Programming by Zababa on Monday January 24, 2022 @01:42PM (#30061990)
It is actually, and it is not the basis for almost everything. Functional code is usually declarative instead of being imperative. SQL is declarative, not imperative. The vast majority of the code written is imperative. It uses "if" instead of polymorphism for example, it doesn't rely on message passing or encapsulation or anything like that. You can't just ignore a paradigm and say that the second one is the most used.
Re:Goodbye, Object Oriented Programming by wvenable on Monday January 24, 2022 @01:47PM (#30062053)
OOP is a strict superset of imperative. You don't even need an object-oriented language to do object-oriented programming -- just an imperative one.
Re:Goodbye, Object Oriented Programming by Zababa on Monday January 24, 2022 @01:53PM (#30062151)
OOP is absolutely not a superset of imperative, that would mean that imperative code is OOP code too, which is false.