Sponsored by Best Buy
Sony(R) Reader view!
bestbuygiftadvice.com - Best Buy(R) Twelpforce(TM) Carolers sing about the Sony(R) Reader as the perfect gift for just about anyone.
67 Comments
- arnar, on 10/12/2007, -4/+13Well, I've seen so many cars/planes/fruits etc. examples in OOP texts, it's getting annoying - this is actually very refreshing :o)
Might offend some people though.. - SL33PY, on 10/12/2007, -3/+11I don't understand why this story got to the front page, are there really so many little kids roaming digg? Polymorphism is not a difficult paradigm to understand at all and the way that it was presented in the article wasn't the best way to explain it.
It indeed (as prh99 indicated) seems to be an attempt to make a dirty joke rather than something serious, also in my opinion it doesn't belong on digg since it's not a something new or innovating. - ditoa, on 10/12/2007, -0/+8I hate to moan but this sort of thing should really be labeled NSFW as the content could get someone in a lot of trouble depending how strict their employer is.
Otherwise the article is actually pretty good, different and funny (to me at least). - CaughtThinking, on 10/12/2007, -2/+9shamefully, i think it will probably connect more with people than the canonical fruit example.
especially because polymorphim usually is explained in the context of "fitting into", which sex is suited for :
blech. i hate most programming texts anyway. they always use bad abstractions to explain the concepts and typically demonstrate bad coding practice to do it with. - JohnTheLutheran, on 10/12/2007, -3/+7Pretty unpleasant. No digg.
Not exactly calculated to increase participation by women in the software industry, either. - PurpleMeteor, on 10/12/2007, -4/+8This is so lame, why is this on the front page? And what language is this? Java or C#? Because Java has synamic bindings by default but NOT C# which renders this stupid example useless.
- sargant, on 10/12/2007, -0/+4I presume you're not familiar with the sequence in Team America: World Police then?
http://www.imdb.com/title/tt0372588/quotes#qt0156972 - kanenas.net, on 10/12/2007, -5/+8... with a very... "intresting" example !!!
- mbiesz, on 10/12/2007, -3/+6I think the intention was to be non-polite.
- r3zonance, on 10/12/2007, -5/+8Awesome example, makes the whole concept a bit more understandable to the newbie C# developers.
- dmoffitt, on 10/12/2007, -0/+3heh. i found it funny (if rather tasteless) but was GLAD i was the only one around, can you say NWS? should have been labeled as such... i don't care if people found it offensive, but i also don't care to be fired over a stupid joke / article.
- harry8227, on 10/12/2007, -0/+3Did you moan while you were reading it or after
- Beanis, on 10/12/2007, -0/+3Anything % 1 is going to be 0. It is saying what is the remainder when I divide by 1. No remainder will ever exist, under any circumstance. % 2 gives 50-50 odds, and will produce either a 0 or a 1.
The mod operator only works on integers so there is no way to get a decimal answer in any language. - WayneMan, on 10/12/2007, -2/+5I feel like I need a shower...
- r00d, on 10/12/2007, -1/+4Dugg to get the numbers up more than anything, the idea of Kevin and Alex potentially discussing this on Diggnation and the amusement that would likely ensue is reason enough for my vote...
- goatrandy, on 10/12/2007, -2/+5I don't usually feed the trolls, but...
1) Not spam. Didn't write it, just thought it was funny. Much like the 300+ other poeple who liked it enough to Digg it so far.
2) The description is not misleading in any way. Everything it says is true, and it is in fact a rather GOOD tutorial on polymorphism. Also its funny. Laugh.
3) Banned? What the hell for? Offending your delicate sensibilitys? Sorry pal, but in the real world people are sometimes naked, and sometimes when they're naked they perform sex acts. This fact may offend you, but too bad. Thats the way the world is, and it DOESN'T offend most people.
4) I thought it was much more clever than the stuff on the bathroom stalls in my area, but then you may have better bathroom stalls. Although, I can't imagine learning OOP from a bathroom stall. You must be a very confused coder. ;) - inactive, on 10/12/2007, -3/+6Is this concept really presented in such a difficult way that this is necessary? Looks more like an attempt at making dirty programming jokes (nice try BTW).
- minitechnik, on 10/12/2007, -1/+3don't listen to the haters. its a good example combined with a lot humour.
internets ;) nothing more to see here. dammit he didnt take some pictures to explain :-D - grapetonic, on 10/12/2007, -0/+2Aaahahaha. That was one f***ing funny example!
/me want to see more of this kind of stuff. - mgrasso, on 10/12/2007, -0/+2Shouldn't Penis be a protected member?
- Beanis, on 10/12/2007, -1/+3(Math.RandomNumber() % 1 == 0) doesn't give 50-50 odds.
They are always spitting - roninBaka, on 10/12/2007, -0/+1My girlfriend who went to the same class as me yesterday agrees with me that this is both a) funny b) a better explantion than our teachers.
See also asked me to note that she doesn't think many of her female friends also studying IT would be offened by this. - ph713, on 10/12/2007, -0/+1
As the k5 commenters pointed out, it's not a very good example because there's really no data hiding going on, and very minimal behavioral change. A better example would have different behaviors for F*** depending the Hole context as well. - Xiol, on 10/12/2007, -0/+1You read tutorials about polymorphism with friends?
- matthom, on 10/12/2007, -0/+1Yeah, a small "warning" might have helped, but we're all adults (for the most part), so it's not that big of a deal. Just focus on what's trying to be explained, and don't worry about the actual "elements" being used...
- roninBaka, on 10/12/2007, -2/+3Ok I actually just sat through a two hour lecture on this yesterday. It made no sense at all! After reading that it does make sense... yay
It all comes down to teaching in examples you use in day to day life... and the stupid shapes example that my teacher was using just seemed pointless. - CosmicJustice, on 10/12/2007, -0/+1Ditto that! bbbenson
- mrASSMAN, on 10/12/2007, -4/+5ok i've read the entire demonstration. this guy is a genious! it actually held my attention while i learned! ..(and continuously cracked up)
- thehig, on 10/12/2007, -0/+1It appears that dig needs a NSFW flag. I know we are all grown ups but our employers may not be that understand.
- d03boy, on 10/12/2007, -0/+1Why can't my professor teach it this way?
- kozmo, on 10/12/2007, -1/+2I feel so dirty, but it at least I understand the concept of polymorphism now. :-)
Dugg! - nonchallant0819, on 03/31/2008, -0/+0This is a great story... found this one through http://www.google.com
___________________________________
http://www.TopNotchCarpentry.com - just2fatty, on 10/12/2007, -0/+0I think he meant
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Math.html#random()
Which does NOT give 50-50 odds unless cast with some rounding rule that would appropriately distinguish [0,1/2) from [1/2,1) as 0,1 - aximilation, on 10/12/2007, -2/+2Interesting, yes, quite, but still, come on...not the thing to stumble on at work or with friends, at least a little warning would be nice. No digg.
- starbirix, on 10/12/2007, -1/+1I <3 Kuro5hin, always have, but I still don't know what to think about that article. Especially since it's the first I've seen on Digg. They have much better other articles.
- mrASSMAN, on 10/12/2007, -2/+2and (Math.RandomNumber() % 1 == 0) IS 50-50 odds. the computer is randomly choosing from 0 to 1, such as a quarter being dropped and getting heads or tails. there's a 50 percent chance of hitting 1 or 0
- awesinine, on 07/15/2009, -2/+2***** a
- matx, on 10/12/2007, -1/+1I ifrst saw this on irc, it is funny and isnt explains it quite well :D
- cgwas, on 10/12/2007, -0/+0I always thought a good example of polymorphism was to say that Parakoopa extends the Koopa class.
- RobGamble, on 10/12/2007, -0/+0Why are you spending time reading Digg at work?
- RobGamble, on 10/12/2007, -1/+0See, now we know you made that up. There are no girls studying IT. 8-)
- Katana, on 10/12/2007, -7/+6was the author watching porn when he wrote this article?
not a bad explanation of polymorphism, but then it is easier than most people think anyway.
should have chosen a better abstraction example though, like cars for instance. - la3toot, on 10/12/2007, -13/+12Is not there any other polite method of teaching ?
- kayvaan, on 10/12/2007, -2/+1Nice. Way to continue to engender the stereotype of progammers as sweaty, adolescent geeks with completely juvenile attitudes about sex and women.
- chrismear, on 10/12/2007, -5/+4God, that was ***** embarrassing.
"WOW LOOK AT ME I DO THE SEX LOL" - Trepan, on 10/12/2007, -3/+1what is so hard to understand about polymorphism? This sounds like something a high school shop teacher would use.
- mrASSMAN, on 10/12/2007, -3/+1always? i'd say 50-50 is about right (at least high school girls)
- killrgorilla, on 10/12/2007, -3/+1ya it's kinda stupid, but it was pretty funny to imagine my uber nerdy professors explaining it in that way
just chill and laugh at the joke dammit. - alc0h0lic, on 10/12/2007, -3/+1LoL, someone is sexually frustrated ...
It's also a very simple example, without true information hiding or interfaces - mpeters13, on 10/12/2007, -4/+2omfg.i guess this rules out the classic shapes/animals examples.
-
Show 51 - 67 of 67 discussions



What is Digg?