What is the opposite of OOP? [closed]

半腔热情 提交于 2019-11-29 21:06:37

"Opposite" isn't really a good way of putting it. What's the "opposite" of Democracy? OOP is a a paradigm -- a way of viewing the problem of programming.

The four main coding paradigms are functional (viewing programs as mathematical formulas), imperative (programs are series of instructions for the computer), logical (model information and the relationship between that information), and OOP (Model objects and how it interacts with other data.)

http://www.cs.aau.dk/~normark/prog3-03/html/notes/paradigms_themes-paradigm-overview-section.html#paradigms_logic-paradigm-overview_title_1

Logical is the most different by far and you have to jump through a lot of hoops to solve some problems in logical programming. The other three all solve the same problems, but the approaches are different.

Procedural Programming is one of the other forms used.

http://en.wikipedia.org/wiki/Procedural_programming

There are several but i would say Functional Programming is the most opposite.

http://en.wikipedia.org/wiki/Functional_programming

There is no such thing. OOP is a concept built on top of procedural programming, there is no opposite rather there is a choice of writing in OO or not.

Clive Williams

These answers are all wrong ... and that is a VERY good question ... and the answer is .... "AOP" - i.e. an "Algorithmic Oriented Programming" entirely based on the "algorithm" being at the very centre of the concept - in an AOP the "data" or an "object" or "objects"are simply "passed to the algorithm" - i.e. THE ALGORITHM IS ENTIRELY KING (it "knows" what to do with the data) - the data carries around "nothing".

In fact "we" (at Inferix) think OOP is a blind alley!

AOP is a much better model of reality - OOP is fine for "images on screens" and "data processing" but it cannot encapsulate intelligence - because "relationships and dynamics and intelligence" are not at it's core!

So we think that "AI Entities" (coming soon) will use only AOP!

Practically speaking Algol60, Coral66 and Inferix-MTR are examples of AOP languages - Algol60 became Pascal and Ada and the likes - and these just became more and more OOP (e.g. Delphi)!

The start of "typing" of values marked the end of AOP!

However: MTR is still a strictly AOP language (but unfortunately at present it is designed for AI entities to use and not humans).

You could think of an AOP as a language that strictly "prohibits" the typing of data elements and is only concerned with "values" of "signals".

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!