zhimin's profilextzhminPhotosBlogLists Tools Help

Blog


    November 21

    linus 的几句话

    前端时间看到过linus攻击的c++的新闻,但是没有认真看都攻击啥了,今天翻出来看看,觉得有些话还是很有道理的,
     
    “——低效的抽象编程模型,可能在两年之后你会注意到有些抽象效果不怎么样,但是所有代码已经依赖于围绕它设计的‘漂 亮’对象模型了,如果不重写应用程序,就无法改正。”
    “字符串/内存管理根本无关紧要。这不是重要的部分,而且也不复杂。唯一真正重要的部分是设计。”
     
    当然我坚决反对linus的这句话,
    C++是一种horrible语言。而且因为有大量不够标准的程序员在使用而使情况更糟,以至于极容易产生彻头彻尾的垃圾(total and utter crap)。老实说,选择C就是为了把C++程序员踢出去。……我有这样的结论,任何喜欢用C++而不是C开发项目的程序员可能都是我希望踢出去的人,免得他们来搞乱我参与的项目。
     
    C++和STL都很不错,问题是怎么用,直接攻击语言,实在有点……怎么看起来,有点像信仰之争的味道。
     
     
    现实中,c++同学的日子还真是不容易呀,
    一方面在企业级系统开发中,C++已经基本被Java和C#等淘汰出局,另一方面在系统编程和嵌入式等更接近硬件的领域,又遭到C的强烈狙击。
    微软架构师Brian Beckman说,C++语言主要是用来开发别的语言的。
     
    语言嘛,工具而已嘛。
     
     

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://xtzhmin.spaces.live.com/blog/cns!B15DE766C8F0AEA4!209.trak
    Weblogs that reference this entry
    • None