Why not OOP?

Whatīs the problem...?

  • (2 Pages)
  • +
  • 1
  • 2

21 Replies - 3685 Views - Last Post: 15 December 2009 - 11:59 PM Rate Topic: -----

Poll: OOP poll (43 member(s) have cast votes)

Do you like OOP?

  1. It rules! (32 votes [74.42%])

    Percentage of vote: 74.42%

  2. Yes, a little bit. (11 votes [25.58%])

    Percentage of vote: 25.58%

  3. Not really... (0 votes [0.00%])

    Percentage of vote: 0.00%

  4. I hate it. (0 votes [0.00%])

    Percentage of vote: 0.00%

Can you do OOP?

  1. Sure, I am a master in it. (16 votes [37.21%])

    Percentage of vote: 37.21%

  2. Yes. (26 votes [60.47%])

    Percentage of vote: 60.47%

  3. No, but I would like to learn it. (1 votes [2.33%])

    Percentage of vote: 2.33%

  4. No! (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote

#1 Aurel300   User is offline

  • D.I.C Head

Reputation: 13
  • View blog
  • Posts: 230
  • Joined: 10-November 07

Why not OOP?

Posted 24 November 2009 - 06:01 AM

I donīt get this.

Why do people not use OOP / donīt like it?

What is up with that? In every second programmer forum / chat many people say OOP is bad / weak / hard, etc...
(at least in Flash)

What do you think about it?

This post has been edited by Aurel300: 24 November 2009 - 06:02 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Why not OOP?

#2 SixOfEleven   User is offline

  • Planeswalker
  • member icon

Reputation: 1055
  • View blog
  • Posts: 6,643
  • Joined: 18-October 08

Re: Why not OOP?

Posted 24 November 2009 - 06:21 AM

I don't program with Flash but I always use OOP for programming games. I don't know how I used to code before I started using OOP.
Was This Post Helpful? 0
  • +
  • -

#3 Choscura   User is offline

  • D.I.C Lover


Reputation: 470
  • View blog
  • Posts: 2,235
  • Joined: 18-October 08

Re: Why not OOP?

Posted 24 November 2009 - 06:39 AM

among other things, if you can't do OOP, you can't do a big project and you can't re-use the parts from whatever project as easily.
Was This Post Helpful? 0
  • +
  • -

#4 stayscrisp   User is offline

  • フカユ
  • member icon

Reputation: 1040
  • View blog
  • Posts: 4,325
  • Joined: 14-February 08

Re: Why not OOP?

Posted 24 November 2009 - 07:06 AM

I agree OOP is great! Makes any sizeable project manageable.
Was This Post Helpful? 0
  • +
  • -

#5 Aurel300   User is offline

  • D.I.C Head

Reputation: 13
  • View blog
  • Posts: 230
  • Joined: 10-November 07

Re: Why not OOP?

Posted 24 November 2009 - 08:30 AM

Woot.

Were those people beginners, or what?
Weird... DIC members do probably think about OOP very differently... Not that I do not like it .P
Was This Post Helpful? 0
  • +
  • -

#6 Dophert   User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 60
  • Joined: 19-October 09

Re: Why not OOP?

Posted 24 November 2009 - 09:33 AM

Without OOP, there wouldn't be any decent software.
Was This Post Helpful? 0
  • +
  • -

#7 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 14929
  • View blog
  • Posts: 59,615
  • Joined: 12-June 08

Re: Why not OOP?

Posted 24 November 2009 - 10:33 AM

Do you have any examples of people knocking on OOP?
Was This Post Helpful? 0
  • +
  • -

#8 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

Re: Why not OOP?

Posted 24 November 2009 - 12:17 PM

I knock on languages that try to force OOP (like Java) in all situations even though it doesn't always make sense. At the same time, I am consistently annoyed by people who say that some languages (like C) are not (or do not support) OOP just because they do not force it down the developer's throat.
Was This Post Helpful? 0
  • +
  • -

#9 WolfCoder   User is offline

  • Isn't a volcano just an angry hill?
  • member icon


Reputation: 828
  • View blog
  • Posts: 7,696
  • Joined: 05-May 05

Re: Why not OOP?

Posted 24 November 2009 - 12:54 PM

Exactly, I really hate language-programmer labels, but for things I do personally I always write C in object style. I think its important to do in C as it is easy to forget and write code that's hard to manage (because, if you want power, you have to write custom memory handling, abstraction, interfacing, etc.). Nothing is worse than a quarter million lines of C code that is a complete mess, as opposed to a quarter million lines of C code where it takes you moments to find what you want to work on.

I just picked up my lump of engine for NovaForce from weeks ago to get something done over the break and it was easy for me to jump right in since it was all organized in that fashion.

This post has been edited by WolfCoder: 24 November 2009 - 12:56 PM

Was This Post Helpful? 0
  • +
  • -

#10 SixOfEleven   User is offline

  • Planeswalker
  • member icon

Reputation: 1055
  • View blog
  • Posts: 6,643
  • Joined: 18-October 08

Re: Why not OOP?

Posted 24 November 2009 - 05:22 PM

I would agree with WolfCoder. You do not have to use an OOP language to code with OOP principals. You do get a performance boost when you use just C over C++ but you have to be more careful for the reasons already stated. C#, Java, and others do enforce the OOP a little too strictly. In any event the ideas of encapsulation, inheritance and polymorphism do make life much easier for a programmer.

*edit*
They are also trying to get programmers who program with functional languages to use OOP concepts.

This post has been edited by SixOfEleven: 24 November 2009 - 05:24 PM

Was This Post Helpful? 0
  • +
  • -

#11 Hellbroth   User is offline

  • D.I.C Head
  • member icon

Reputation: 17
  • View blog
  • Posts: 190
  • Joined: 15-August 09

Re: Why not OOP?

Posted 24 November 2009 - 06:58 PM

I like it too even if it still confuses me.I am still trying to learn it and i am sure when i learn it my code will be as clean as ever.
Was This Post Helpful? 0
  • +
  • -

#12 dsherohman   User is offline

  • Perl Parson
  • member icon

Reputation: 227
  • View blog
  • Posts: 654
  • Joined: 29-March 09

Re: Why not OOP?

Posted 25 November 2009 - 06:10 AM

View PostAurel300, on 24 Nov, 2009 - 01:01 PM, said:

What is up with that? In every second programmer forum / chat many people say OOP is bad / weak / hard, etc...
(at least in Flash)

Perhaps this is an issue with Flash or the Flash community (disclaimer: I've never encountered either personally, so this is pure speculation) rather than with OOP. Back in the early days of 4GLs and GUI builders, they were often sold as being either "object-oriented" or "object-based", which led to a widespread misperception that OOP was all about GUIs and that "object" meant "a thing you can see on the screen". Perhaps there is a similar misperception in the Flash world, given that Flash is also highly-associated with with graphics-oriented tasks?

As for my answer on the poll, I had to go with claiming that I only like it "a bit", even though I am a big OOP fan and rarely do much without it. I couldn't bring myself to answer "it rules!" because OOP is not a silver bullet, nor is it appropriate for use in every situation. It's a very good tool which is very widely applicable, but there are other tools out there, too, and there are cases where another one is a better choice.
Was This Post Helpful? 0
  • +
  • -

#13 stayscrisp   User is offline

  • フカユ
  • member icon

Reputation: 1040
  • View blog
  • Posts: 4,325
  • Joined: 14-February 08

Re: Why not OOP?

Posted 25 November 2009 - 06:29 AM

I think the problem with flash is that with the release of AS3, which is a more OOP based approach to actionscript, lots of things that people had learned to do in AS2 were no longer applicable in AS3.

I code in flash quite a lot and found AS3 to be a much better way of programming, as opposed to my tangled mess of AS2 code chucked all over the place.
Was This Post Helpful? 0
  • +
  • -

#14 Aurel300   User is offline

  • D.I.C Head

Reputation: 13
  • View blog
  • Posts: 230
  • Joined: 10-November 07

Re: Why not OOP?

Posted 25 November 2009 - 06:56 AM

Ok, so first of all, the people stating that OOP isnīt good were not really professionals / masters, but not only beginners too. Also, I noticed these things a little sooner - like 2-4 years ago.

Weird thing is that now I donīt really remember where were those things at...
Bah, whatever, I still thing OOP is just the thing to do ... things. :3

And, by the way, it was NOT about graphic-oriented things, dsherohman.
Was This Post Helpful? 0
  • +
  • -

#15 dsherohman   User is offline

  • Perl Parson
  • member icon

Reputation: 227
  • View blog
  • Posts: 654
  • Joined: 29-March 09

Re: Why not OOP?

Posted 26 November 2009 - 03:23 AM

View PostAurel300, on 25 Nov, 2009 - 01:56 PM, said:

And, by the way, it was NOT about graphic-oriented things, dsherohman.

Erm, yes, I know OOP isn't about graphic-oriented things. That's why I referred to the idea that "OOP" = "GUI building" and "object" = "thing on the screen" as a "misperception". (Per dictionary.com: "misperceive - to understand or perceive incorrectly; misunderstand.")
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2