Discussion in 'OT Technology' started by CompiledMonkey, Dec 5, 2003.
wtf. isn't that like changing into an aminal?
omg, I laughed out loud.
it's been like 3 hours and i'm still laughing when I see this
best post EVA!
Java specific: http://www.javaworld.com/javaworld/javatips/jw-javatip30.html
[Serious Answer ]
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 ( ) 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
Never since the C++ project in school about 2 years ago. Have used inheritance a few times though
I just got home, it's like 10 hours sicne I read it, and I glanced at it again, and i'm laughing
this is the funniest thing I read on OT for sure
no I have not, yet again I haven't coded in like two month, been lazy, and lack of programming job owns me
@ changing into an animal
damned warcraft has warped my mind
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.
Well, when you do a lot of distributed applications, it is pretty handy, we use it all the time at work...
hsmith, do you have any examples you can talk through as specific uses?
I saw this and I thought "holy crap, didn't we go through this already?" and then I saw "animal"
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.
No doubt. This project I'm currently involved in has done wonders for my planning and modeling skills.
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.
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.
The monsters could turn into animals?
what's worse is that i hadn't learned unpolymorphism yet, so my mud was basically a bunch of sheep and deer running around