OOP....from one lang to the next....

Questions about programming languages and debugging
Post Reply
User avatar
tristian
Newbie
Newbie
Posts: 2
Joined: 11 Jul 2008, 16:00
15

OOP....from one lang to the next....

Post by tristian »

Having learned some OOP in PHP....does it differ vastly across the different languages, or are the basic principles and the like the same?

User avatar
DNR
Digital Mercenary
Digital Mercenary
Posts: 6114
Joined: 24 Feb 2006, 17:00
18
Location: Michigan USA
Contact:

programming paradigm, or programming style

Post by DNR »

I believe this is what you are talking about:

A programming paradigm is a fundamental style of computer programming. (Compare with a methodology, which is a style of solving specific software engineering problems).

A programming language can support multiple paradigms. For example programs written in C++ or Object Pascal can be purely procedural, or purely object-oriented, or contain elements of both paradigms. Software designers and programmers decide how to use those paradigm elements.

In object-oriented programming, programmers can think of a program as a collection of interacting objects, while in functional programming a program can be thought of as a sequence of stateless function evaluations. When programming computers or systems with many processors, process-oriented programming allows programmers to think about applications as sets of concurrent processes acting upon logically shared data structures.

Just as different groups in software engineering advocate different methodologies, different programming languages advocate different programming paradigms. Some languages are designed to support one particular paradigm (Smalltalk supports object-oriented programming, Haskell supports functional programming), while other programming languages support multiple paradigms (such as Object Pascal, C++, C#, Visual Basic, Common Lisp, Scheme, Python, Ruby and Oz).


Annotative programming (as in Flare language)
Aspect-oriented programming (as in AspectJ)
Attribute-Oriented Programming (as in Java 5 Annotations, pre-processed by the XDoclet class; C# Attributes)
ARS based programming
Automata-Based Programming
Bayesian programming
Class-based programming, compared to Prototype-based programming (within the context of object-oriented programming)
Component-oriented programming (as in OLE)
Concatenative programming
Constraint programming, compared to logic programming
Context-oriented programming (as in ContextJ/ContextS/ContextL)
Cybernetics Oriented Programming
Dataflow programming (as in spreadsheets)
Declarative programming
Event driven programming
Flow-based programming
Function-level programming
Functional programming
Grammar-oriented programming
Goal-directed programming as in Snobol, somewhat similar to Logic Programming
Imperative programming, compared to declarative programming
Intentional programming
Language-oriented programming
Literate Programming
Logic programming (as in Prolog) and Abductive Logic Programming
Message passing programming, compared to imperative programming
Nondeterministic programming
Object-oriented programming (as in Smalltalk)
Pipeline programming (as in the UNIX command line)
Policy-based programming
Procedural programming, compared to functional programming
Process-oriented programming a parallel programming model.
Reactive programming
Recursive programming, compared to iterative programming
Reflective programming
Scalar programming, compared to Array programming
Structured programming, compared to unstructured programming
Subject-oriented programming
Tree programming
Value-level programming, compared to function-level programming
Metaprogramming

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

DNR
-
He gives wisdom to the wise and knowledge to the discerning. He reveals deep and hidden things; he knows what lies in Darkness, and Light dwells with him.

bubzuru
.net coder
.net coder
Posts: 700
Joined: 17 Apr 2007, 16:00
17
Contact:

Re: OOP....from one lang to the next....

Post by bubzuru »

tristian wrote:Having learned some OOP in PHP....does it differ vastly across the different languages, or are the basic principles and the like the same?
its the same
just the syntax that changes :)

Post Reply