Деякі особливості застосування об'єктно-орієнтованої парадигми
Володимир Бублик, Д. Фітель · Electronic Kyiv-Mohyla Academy Institutional Repository (National University of Kyiv-Mohyla Academy) · 2024
The paper explores Edsger Dijkstra's alleged harsh criticism of the object-oriented paradigm, offering a detailed critique of contemporary object-oriented programming (OOP). It demonstrates how certain attributes common in OOP implementations cannot be expressed as mathematical theories, thus making them incompatible with Dijkstra's structured programming philosophy. Key principles of the OO paradigm that aim to create precise abstractions with a clear hierarchy, akin to structured programming have been outlined. Additionally, the paper examines C++ as a successful example of OOP implementation, highlighting its ability to facilitate abstractions without making them obligatory. Finally, the paper illustrates how combining the OO paradigm with other paradigms can be advantageous. It uses a specific example of template metaprogramming in C++ applied to an objectoriented implementation of an algorithm, showcasing the vast scalability for multiple use cases without incurring runtime costs.
Cited by 0 works.