Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the opposite of OOP? [closed]

Tags:

oop

paradigms

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?

like image 477
if_zero_equals_one Avatar asked Jun 09 '11 15:06

if_zero_equals_one


1 Answers

"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:

  1. functional (viewing programs as mathematical formulas)
  2. imperative (programs are series of instructions for the computer)
  3. logical (model information and the relationship between that information), and
  4. 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.

like image 78
Jeremy Avatar answered Oct 11 '22 02:10

Jeremy