OOP flu

This is a discussion on OOP flu within the General Discussions forums, part of the Community Boards category; it seems like my C++ programming is wholly and holly based on OOP!! Every program i write is in OOP ...

  1. #1
    "Why use dynamic memory?"
    Join Date
    Aug 2006
    Posts
    186

    OOP flu

    it seems like my C++ programming is wholly and holly based on OOP!!
    Every program i write is in OOP

    In real world i imagine everything is oop. when i play games, i think of tanks, monsters, buildings..etc originally wirtten as classes by programmers!!!

    when i use other program like word or mathcad i imagine eery button and every single thing on the screen is an object

    i cannot imagine writing an operating system or a game without oop!!

    does any have the oop flu like me ?
    "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."-Bjarne Stroustrup
    Nearing the end of finishing my 2D card game! I have to work on its 'manifesto' though <_<

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> does any have the oop flu like me ?

    Take a shower, drink some orange juice, and get some rest. You'll get over it.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by Sebastiani View Post
    >> does any have the oop flu like me ?

    Take a shower, drink some orange juice, and get some rest. You'll get over it.
    And write a few programs in COBOL
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  4. #4
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,709
    >> In real world i imagine everything is oop.

    Dude you're a Matrix freak get away from me. We can not program the world. Now had you said you imagine everything as an object, we would have something to talk about. That's of course a very unhealthy viewpoint as humans tend to take out vengeance and realize their fantasies with objects, like women.

    Sorry...

    But now you know it's wrong.

    I challenge you to learn Haskell and program in it for at least six months. Maybe seeing everything as an operation will help you see the forest for the trees. And you won't make another lame OOP thread for the time being.
    Last edited by whiteflags; 06-26-2009 at 12:37 AM.

  5. #5
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by whiteflags View Post
    Dude you're a Matrix freak get away from me. We can not program the world.
    Everyone knows the world is written in LISP, you're not fooling anybody
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  6. #6
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,709
    If that were true I would expect more magic.

  7. #7
    Registered User Sharke's Avatar
    Join Date
    Jun 2008
    Location
    NYC
    Posts
    303
    When it starts interfering with your sexual functions that's when you know you've got a problem. Some years ago I was obsessed with playing guitar and I was at it sometimes 10 hours a day. When it came down to sex, the guitar thoughts mingled with the sex thoughts in ways that I can't even describe accurately in the English language. I'd perceive my girlfriend's arm as a guitar neck, that kind of thing. I think I actually went insane for a while. Now, if I do anything for too long I become overwhelmed with nausea and I honestly think it's my body's way of telling me that my obsession is becoming unhealthy.

  8. #8
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by whiteflags View Post
    If that were true I would expect more magic.
    muggle
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  9. #9
    Registered User Sharke's Avatar
    Join Date
    Jun 2008
    Location
    NYC
    Posts
    303
    Quote Originally Posted by whiteflags View Post
    If that were true I would expect more magic.
    There's a really nice girl in the audience in those lectures who asks questions in a few of them. I kind of had a thing for her when I watched those. A good looking girl who programs....oh my!

  10. #10
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by Sharke View Post
    There's a really nice girl in the audience in those lectures who asks questions in a few of them. I kind of had a thing for her when I watched those. A good looking girl who programs....oh my!
    It's a trap
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  11. #11
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> I'd perceive my girlfriend's arm as a guitar neck, that kind of thing. I think I actually went insane for a while.

    Heh, that's pretty extreme. I heard Hendrix was the same way.

    >> A good looking girl who programs....oh my!

    I know, right? But they usually turn out to be too complicated for me. Too bad. To think of all the pillow talk about optimal sorting algorithms that I'm missing out on. It's a real shame, I tell you.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  12. #12
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,069
    Quote Originally Posted by Sebastiani View Post
    To think of all the pillow talk about optimal sorting algorithms that I'm missing out on. It's a real shame, I tell you.
    My brain normally doesn't function all that well in pillow talk for obvious reasons.
    Sent from my iPadŽ

  13. #13
    "Why use dynamic memory?"
    Join Date
    Aug 2006
    Posts
    186
    lol i should have said that i see everything in the world as an object instantiated from a C++ class
    "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."-Bjarne Stroustrup
    Nearing the end of finishing my 2D card game! I have to work on its 'manifesto' though <_<

  14. #14
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> lol i should have said that i see everything in the world as an object instantiated from a C++ class

    I know what you mean. It's also true that OOP has really changed the way software is written. But maybe we've taken the analogy a bit too far. Not everything's an object, if you get right down to it. Functional programming and OOP both have their place (as do other paradigms, some yet undiscovered), and are actually complimentary. Somewhere in the middle you find a balance that describes the problem in the most logical way.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  15. #15
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,832
    I agree OOP is a sickness.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Should OOP be any new language priority??
    By Hussain Hani in forum General Discussions
    Replies: 80
    Last Post: 06-13-2009, 10:56 AM
  2. Data Mapping and Moving Relationships
    By Mario F. in forum Tech Board
    Replies: 7
    Last Post: 12-14-2006, 09:32 AM
  3. recommendation for a good OOP book
    By Mario F. in forum C++ Programming
    Replies: 2
    Last Post: 06-15-2006, 04:28 PM
  4. OOP Theory Question
    By Zeusbwr in forum C++ Programming
    Replies: 2
    Last Post: 10-30-2005, 07:37 AM
  5. Lookin for an OOP Book
    By o0obruceleeo0o in forum C++ Programming
    Replies: 6
    Last Post: 10-27-2002, 02:27 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21