Polymorphism: How often do you use it?

Discussion in 'OT Technology' started by CompiledMonkey, Dec 5, 2003.

  1. CompiledMonkey

    CompiledMonkey New Member

    Joined:
    Oct 26, 2001
    Messages:
    8,528
    Likes Received:
    0
    Location:
    Richmond, VA
  2. lowfat

    lowfat 24/Mac/SciFi/PC Crew OT Supporter

    Joined:
    Oct 27, 2003
    Messages:
    63,949
    Likes Received:
    0
    Location:
    Grande Prairie, AB, Can
    wtf. isn't that like changing into an aminal?
     
  3. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,924
    Likes Received:
    11
    Location:
    Los Angeles
    :rofl:
     
  4. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    omg, I laughed out loud.
    :rofl: :rofl: :rofl: :rofl: :rofl: :rofl:
     
  5. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    it's been like 3 hours and i'm still laughing when I see this :rofl: :rofl: :rofl: :rofl:

    best post EVA!
     
  6. CompiledMonkey

    CompiledMonkey New Member

    Joined:
    Oct 26, 2001
    Messages:
    8,528
    Likes Received:
    0
    Location:
    Richmond, VA
  7. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    [Serious Answer :big grin: ]
    when i was at my previous job and i had plenty of R&D time to develop a good object model and use polymophism, i did. It's an awesome way to abstract your code structure and organize your source. Right now i'm using ASP full time ( :sad2: ) and at that i'm given unreasonable deadlines to where i'm just hacking the quickest solution together to get it done in time. But if i had the choice, OO programming is the way to go. Even for web apps IMO
     
  8. panzerfaust

    panzerfaust New Member

    Joined:
    Oct 13, 2003
    Messages:
    1,604
    Likes Received:
    0
    Location:
    Far far away
    fairly often
     
  9. ChosenGSR

    ChosenGSR Mama always said you'd be the chosen one

    Joined:
    Oct 24, 2001
    Messages:
    51,094
    Likes Received:
    241
    Location:
    HoCo, MD
    Never since the C++ project in school about 2 years ago. Have used inheritance a few times though
     
  10. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    I just got home, it's like 10 hours sicne I read it, and I glanced at it again, and i'm laughing

    :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: :rofl: this is the funniest thing I read on OT for sure
     
  11. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    serious answer:

    no I have not, yet again I haven't coded in like two month, been lazy, and lack of programming job owns me :hs:
     
  12. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,924
    Likes Received:
    11
    Location:
    Los Angeles
    :rofl: :rofl: :rofl: @ changing into an animal
     
  13. lowfat

    lowfat 24/Mac/SciFi/PC Crew OT Supporter

    Joined:
    Oct 27, 2003
    Messages:
    63,949
    Likes Received:
    0
    Location:
    Grande Prairie, AB, Can
    damned warcraft has warped my mind :o
     
  14. CompiledMonkey

    CompiledMonkey New Member

    Joined:
    Oct 26, 2001
    Messages:
    8,528
    Likes Received:
    0
    Location:
    Richmond, VA
    I've never had that opportunity. :( I've got a large project coming up for independent study, so I'll have plenty of time then.
     
  15. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    :rofl:
     
  16. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area

    :bigthumb: :rofl:
     
  17. aphoric

    aphoric Even if god did exist, it would be necessary to ab

    Joined:
    Aug 29, 2003
    Messages:
    918
    Likes Received:
    0
    Location:
    Leaving Afghanistan
    Well, when you do a lot of distributed applications, it is pretty handy, we use it all the time at work...
     
  18. CompiledMonkey

    CompiledMonkey New Member

    Joined:
    Oct 26, 2001
    Messages:
    8,528
    Likes Received:
    0
    Location:
    Richmond, VA
    hsmith, do you have any examples you can talk through as specific uses?
     
  19. Scoob_13

    Scoob_13 Anything is possible, but the odds are astronomica

    Joined:
    Oct 5, 2001
    Messages:
    73,798
    Likes Received:
    38
    Location:
    Fort Worth. Hooray cowgirls.
    I saw this and I thought "holy crap, didn't we go through this already?" and then I saw "animal" :o
     
  20. CompiledMonkey

    CompiledMonkey New Member

    Joined:
    Oct 26, 2001
    Messages:
    8,528
    Likes Received:
    0
    Location:
    Richmond, VA
    I'm glad this came back up. In a research project I'm doing at school (currently in the modeling phase) I'm using polymorphism heavily. I can't believe I haven't used it sooner.
     
  21. CompiledMonkey

    CompiledMonkey New Member

    Joined:
    Oct 26, 2001
    Messages:
    8,528
    Likes Received:
    0
    Location:
    Richmond, VA
    No doubt. This project I'm currently involved in has done wonders for my planning and modeling skills.
     
  22. crotchfruit

    crotchfruit Guest

    i haven't used it that much since my general programming time has migrated from c++ apps to php webapps.

    the last time i found it useful was when programming a stupid little text mud. being able to write general behaviors for "objects" or "monsters" and then being able to override those behaviors for specific classes all the way down the inheritance tree is really nice. :hsd:
     
  23. CompiledMonkey

    CompiledMonkey New Member

    Joined:
    Oct 26, 2001
    Messages:
    8,528
    Likes Received:
    0
    Location:
    Richmond, VA
    Very much so. In the project I'm working on most of our data is represented in lists. Some actions are a little different than others, but they all share a few common ones. Perfect reason to use polymorphism. We're building quite a few classes around this list model that can handle actions differently based on their type and we'll never need to know in the code. :coold:
     
  24. Zourn

    Zourn 16-bit Ninja OT Supporter

    Joined:
    Apr 3, 2002
    Messages:
    2,354
    Likes Received:
    0
    Location:
    Texas
    The monsters could turn into animals? :embd:
     
  25. crotchfruit

    crotchfruit Guest

    what's worse is that i hadn't learned unpolymorphism yet, so my mud was basically a bunch of sheep and deer running around :wtc:
     

Share This Page