IOMonad- -| 回首页 | 2006年索引 | - -3DLogic

AnInconvenientTruthOfMFC

关键词mfc    oo                                          


I had an interesting discussion many years ago with the person who led Microsoft's C++ and Foundation Class (MFC) efforts. When I brought up that MFC wasn't particularly object oriented, his response was that he was well aware of that fact, but most of the people who programmed Microsoft systems didn't understand OO concepts. It wasn't Microsoft's job to teach OO, he said. Consequently, Microsoft deliberately created a procedural system in C++, because that system would be "easier to understand." That OO-is-hard-to-understand philosophy is still dominant at Microsoft. The .NET APIs are procedural in structure, for example, and C# has language features that encourage procedural thinking. So, it's not surprising to find Microsoft applications that don't follow some of the basic principles of OO systems. Many Microsoft programmers seem to take violent exception to any OO practice that doesn't jibe with the way .NET does things, however. They're confusing "familiarity" with "correct."

真相大白了吧,MFC的作者不外乎就是说,搞MFC的程序员你们脑袋太死了,怎么都搞不懂什么叫面向对象,所以我只能给你一个蹩脚的工具。我不知道这样的逻辑正不正确,但是VCL至少比MFC更加OO,这似乎只是作者的借口,但是MFC程序员搞不懂面向对象却是无可争辩了。无疑这些自称真正程序员比VB程序员的境况好不了多少。

【作者: RonaldMatt】【访问统计:】【2006年06月27日 星期二 23:20】【 加入博采】【打印

Trackback

你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=5306011

博客手拉手

回复

- 评论人:安东尼罗宾   2006-10-31 10:56:36   

安东尼罗宾成功学企业管理市场营销培训课程全国最低价16821安东尼罗宾

验证码:   
评论内容: