Jump to content
  • Advertisement
Sign in to follow this  
c-gibson-s

OOP...**P?

This topic is 5122 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, i was just wondering what other types of programming there are besides OOP. Object Oriented is what i have been brought up on, and i think if they have a name for that their should be more. Nothing important, just curious.

Share this post


Link to post
Share on other sites
Advertisement
The type of programming, i think it started with the creation of OOP, because everything before that was pretty much the same i guess, i don't recall it having a particular structure, there was good programming and bad programming, readable and unreadable, maintanable and unmaintanable, i don't recall specifications about structure.

But since OOP was created, i've heard some ppl refering to it's oposite, has funtional programming, and estructural programming.

Share this post


Link to post
Share on other sites
There are procedural(imperitive?) programming{C}, object oriented programming{C++}, functional programming{Haskel}, logical programming{Prolog}, aspect oriented programming{Any OOP Language also supports this probably}, and probably a few more. Also, I might have named some of them incorrectly. Example languages(meaning languages that encourage that paradigm) are in {}

Pure Functional Programming is very simmilar to math. Variables don't change value (you cant say X = 5 then say X = X + 1 for ex), and there are no side effects (functions can do nothing but return values based on calculations done to the function's parameters).

I can't say much about the rest really, and I could be wrong about functional programming.

For the record, Common Lisp is NOT a functional programming language. It supports every paradigm to an extreme degree.

Share this post


Link to post
Share on other sites
Quote:
Original post by Extrarius
For the record, Common Lisp is NOT a functional programming language. It supports every paradigm to an extreme degree.


I knew someone would say that, which is why I added "Scheme" to keep the dogs at bay. It din't work. [wink]

Share this post


Link to post
Share on other sites
Quote:
Original post by thedevdan
Quote:
Original post by Extrarius
For the record, Common Lisp is NOT a functional programming language. It supports every paradigm to an extreme degree.


I knew someone would say that, which is why I added "Scheme" to keep the dogs at bay. It din't work. [wink]


Funny, I was under the impression that Scheme dialects are by nature also classified as Lisp dialects (versions of the same type of language, ie. S-Expressions, Lists, Prefix notation, ...).

Personally I would advise that you learn about all of the types of programming paradigms learn the ones that you think will ever be useful and the use whatever best fits the task at hand (somewhat of a generic response eh?).

As for good code White Rabbit, I'm affraid that good Procedural code written in pre-C languages can still kick the ass of alot of code written in pure OO languages like Java!. It's all got to do with one's skill and perfectionist nature.

One thing to note is that some types of OO rely on another type of programming like OO's dependence on Imperitive or Functional (possibly even Declarative?, uh like Prolog).

Hope that helps somewhat.

Share this post


Link to post
Share on other sites
Hmm...interesting.

Everyone is teaching OOP, so it is really hard to find other ways of learning this stuff. Im having a hard time seeing how you would program out of OOP, but then again i didnt see how OOP would work until i actually started doing it.

What about a straight run and gun language like HTML. It runs top to bottom, in order...what kind of programming is that?

Share this post


Link to post
Share on other sites
Quote:
Original post by c-gibson-s
What about a straight run and gun language like HTML. It runs top to bottom, in order...what kind of programming is that?
I think you'll be hard pressed to find anyone who considers that programming. Considering it doesn't really do any processing at all, and obviously isn't Turing-complete, it really can't be called a programming language. Formatting language, but not programming language.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
HTML is not a programming language, it is nothing more than a script language, unless you created a program that generates compiled HTML. Then maybe it could become a programming language.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!