海纳百川

登录 | 登录并检查站内短信 | 个人设置 网站首页 |  论坛首页 |  博客 |  搜索 |  收藏夹 |  帮助 |  团队  | 注册  | RSS
主题: this kind of study is the holy way...
回复主题   printer-friendly view    海纳百川首页 -> 寒山小径
阅读上一个主题 :: 阅读下一个主题  
作者 this kind of study is the holy way...   
所跟贴 Don't get it. -- 秃公 - (261 Byte) 2007-2-19 周一, 上午12:00 (183 reads)
nunia
[个人文集]






加入时间: 2005/11/04
文章: 2184

经验值: 5079


文章标题: P H class or Ying & Yang Eastern Ways (218 reads)      时间: 2007-2-19 周一, 上午1:12

作者:nunia寒山小径 发贴, 来自 http://www.hjclub.org

that 'OOP Concept explained: Polymorphism' is a fine exercise.

Good until the last example of applying an concept. I'd rather think of it as just an illustration of suicidal psycho mal-function.

//now we loop through the holes and fuck them all with the same Penis

Penis p = new Man().Penis;

foreach(Hole h in holes) {
p.Fuck(h);
}

There are other types of polymorphism. In particular the compile time polymorphism [ as opposed to runtime ]. C++ Templates that let programmer 'write dick function that will not only work with any hole but don't spend a lot of time fumbling to get it in the right hole during the main event...

My feedback to the writer of the original article is this:

first of all, that is a fine exercise.

but can you explain to me, why Hole is declared an abstract class but seldom do prgrammers think of the need to add an abstract layer for the Penis class?

In Buddhism practice, the objective of the Ying flourishing the Yang can be your advanced chapter of OOP concept explained.



作者:nunia寒山小径 发贴, 来自 http://www.hjclub.org
返回顶端
阅读会员资料 nunia离线  发送站内短信 浏览发表者的主页
    显示文章:     
    回复主题   printer-friendly view    海纳百川首页 -> 寒山小径 所有的时间均为 北京时间


     
    论坛转跳:   
    不能在本论坛发表新主题
    不能在本论坛回复主题
    不能在本论坛编辑自己的文章
    不能在本论坛删除自己的文章
    不能在本论坛发表投票
    不能在这个论坛添加附件
    不能在这个论坛下载文件


    based on phpbb, All rights reserved.
    [ Page generation time: 0.097532 seconds ] :: [ 23 queries excuted ] :: [ GZIP compression enabled ]