OOP的对立面是什么? [英] What is the opposite of OOP?
问题描述
我从高中开始学习Java和python,我想我总是学习过OOP,而我的问题是除OOP之外,还有哪些其他编程范例或编程语言类型?
I started in High School learning java and python and I guess I just always learned OOP and nothing else my question is What are the other programming paradigms or types of programming languages beside OOP?
推荐答案
对立"并不是放置它的好方法.民主的对立面"是什么? OOP是一种范例-一种查看编程问题的方式.
"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:
- 功能性(将程序作为数学公式查看)
- 命令性(程序是计算机的一系列说明)
- 逻辑(模型信息以及该信息之间的关系),以及
- OOP (模型对象及其与其他数据的交互方式)
- 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)
到目前为止,逻辑是最与众不同的,您必须跳过很多难题才能解决逻辑编程中的某些问题.其他三个都解决相同的问题,但是方法不同.
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.
这篇关于OOP的对立面是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!