Alright. I know that similar topics have been brought up several times, but I wanted to narrow this down.
Every time I''ve picked up one of LaMonthe''s books, I''ve noticed that he doesn''t tend to use object oriented programming at all. I know that the use of OOP is strictly preference, but I was wondering who here at gamedev prefers to use OOP. I like OOP. It seems to make everything easier (conceptually) I can visualize what''s going on. However, C programming, I find, is easier to code in. I don''t know why, but I get everything over with faster.
What do you think of OOP?
"Remember, I'm the monkey, and you're the cheese grater. So no messing around."
-Grand Theft Auto, London
"It's not whether I win or lose, as long as I piss you off"
-Morrigan, Super Puzzle Fighter II Turbo
D:
OOP is good. That''s all I have to say about that.
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
OOP rules!
you can write larger programs without them getting un-maintainable.
c is prefered for smaller apps though
you can write larger programs without them getting un-maintainable.
c is prefered for smaller apps though
You should use a language (C or OOP C++) that you are comfortable with.
Also what ''is best'' differs per application.
Hell, in some cases (dare I say it) even Visual Basic can be usefull.
Also what ''is best'' differs per application.
Hell, in some cases (dare I say it) even Visual Basic can be usefull.
OOP can be used in C and can be avoided in C++, Java however is really only OOP. Whatever floats your boat, don''t matter if you use it or not.
-----------------------------
A wise man once said "A person with half a clue is more dangerous than a person with or without one."
The Micro$haft BSOD T-Shirt
-----------------------------
A wise man once said "A person with half a clue is more dangerous than a person with or without one."
The Micro$haft BSOD T-Shirt
-----------------------------A wise man once said "A person with half a clue is more dangerous than a person with or without one."The Micro$haft BSOD T-Shirt
October 10, 2000 03:15 PM
quote: Original post by ImmaGNUman
OOP can be used in C and can be avoided in C++, Java however is really only OOP. Whatever floats your boat, don''t matter if you use it or not.
Out of curiosity, how can you use polymorphism, inheritance, and enscapsulation in straight C (which are the heart of object-oriented programming)?
Thank you gnuman, that''s a point that should be make.
OOP = Object Oriented Programming, is a concept involving patterns of module interaction. Almost any language is capable of being used in an OOP manner (ALMOST, I said).
C++ is just an OOL = Object Oriented Language, is a language designed to enforce OOP and make it easier to implement. It can still be used to write non-OOP software.
What this means is that even if you''re using C++ classes, doesn''t mean you''re using OOP. Find a book on OOP Design Patterns, and check if you''re using OOP or not.
Myself, I think OOP is the way to go. Even if you''re only using C, or any other languag, you can use OOP paterns to make software that is much easier to maintain and extend.
Morbo
OOP = Object Oriented Programming, is a concept involving patterns of module interaction. Almost any language is capable of being used in an OOP manner (ALMOST, I said).
C++ is just an OOL = Object Oriented Language, is a language designed to enforce OOP and make it easier to implement. It can still be used to write non-OOP software.
What this means is that even if you''re using C++ classes, doesn''t mean you''re using OOP. Find a book on OOP Design Patterns, and check if you''re using OOP or not.
Myself, I think OOP is the way to go. Even if you''re only using C, or any other languag, you can use OOP paterns to make software that is much easier to maintain and extend.
Morbo
I think OOP is the greatest thing since sliced bread. I use it in every game I work on. It gets you into a great mindset and is greate for code reuse. OOP IS THE WAY FOR ME!!!!!
--------------------------------------------------------"This just goes to show that there are only two kinds of people in this world, stupid people... and me."
I love OOP, my code tends to get unstructured and ugly without it. Guess it fits my way of thinking and codin, but wait, that was the idea behind it, right?
Non OOP is nice sometimes, but generally, I don''t see much point in not using it.
Snale
+--Java Game
Non OOP is nice sometimes, but generally, I don''t see much point in not using it.
Snale
+--Java Game
Snale+--My humble and superior homepage
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement