charles petzold 的新书和访谈

短信息技术 专栏收录该内容
1 篇文章 0 订阅
Author Interview
Talking .NET and C# with Charles Petzold
 _fcksavedurl=Talking .NET and C# with Charles PetzoldCharles Petzold is a full-time freelance writer who has been programming for Microsoft® Windows® since 1985 and writing about Windows programming for nearly as long. His book Programming Windows (first published by Microsoft Press® in 1988 and currently in its fifth edition) taught a generation of programmers how to write applications for Windows. Petzold recently finished authoring Programming Windows with Visual C#™ for Microsoft Press. In this authoritative Windows book, he shows readers how to use Visual C# to create dynamic user interfaces and graphical output for distributed or stand-alone applications. In this interview, Petzold shares his thoughts on object-oriented programming and his new penchant for C#.

MS: How is your new book, Programming Windows with Visual C#, different from the classic Programming Windows?

CP: Programming Windows with C# is an all-new book. Throughout its five editions, Programming Windows has shown readers how to write Windows programs using the C programming language and the native Windows application programming interface (API). In Programming Windows with C# I use a new object-oriented programming language and a class library called Windows Forms, which is part of the new Microsoft .NET Framework.

I first started working with Windows Forms and C# in the summer of 2000, and it was nearly love at first sight. Windows Forms is very close to what I've always envisioned as an ideal object-oriented programming interface to Windows, and C# is now my favorite programming language. Even though I was working largely with beta software, writing the book was an extremely pleasurable experience.

MS: So where does all this leave C++ and the Microsoft Foundation Classes (MFC)?

CP: Still going strong, I'm sure. I think C and C++ will continue to be used for many commercial applications, particularly those where tight code and speed are required. Currently Windows Forms is targeted more to enterprise applications, but that may not last for long. Once programmers start getting a taste of it, I think they'll like it and use it more.

Personally I never liked MFC, which is why I've never written about it. MFC is barely object-oriented and really only a light wrapper around the Windows API. Of course, the lightness of the wrapper helps in making it fast. But as far as a true object-oriented approach to Windows programming goes, I think Windows Forms finally gets it right.

MS: Any advice to programmers dealing with all this stuff?

CP: Learn as much as possible. C, C++, and C# have so much in common that there's no reason why a programmer can't be fluent in all three languages. Learning the Win32® API makes you a better MFC or Windows Forms programmer.

Sometimes we programmers tend to treat languages and interfaces as if they were political camps. Already I've been accused of “abandoning” the C and API camp. This is really quite silly. Languages and interfaces are tools, and the more tools you have in your toolbox, the greater your programming abilities.

MS: Will you be getting a .NET tattoo to complement the Windows logo on your right arm?

CP: I got that Windows tattoo after I'd been programming for Windows for a decade. So ask me again in 2010.

Charles Petzold wrote the very first magazine article about Windows programming for the December 1986 issue of Microsoft Systems Journal. In May 1994, Petzold was one of only seven people (and the only writer) to be given a Windows Pioneer Award from Windows Magazine and Microsoft Corporation for his contribution to the success of Microsoft Windows. Petzold is also the author of a unique introduction to the inner workings of computers entitled Code: The Hidden Language of Computer Hardware and Software. He is currently researching a book on the historical origins of software.

 

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

相关推荐
中文名: Windows程序设计 (第5版 珍藏版) 原名: Programming Windows, 5th Edition 作者: Charles Petzold 译者: 方敏 张胜 梁路平 赵勇 资源格式: PDF 版本: 扫描版 出版社: 清华大学出版社 书号: 9787302227397 发行时间: 2010年9月1日 地区: 大陆 语言: 简体中文 简介: 内容介绍: 这是一本经典Windows编程圣经,曾经伴随着近50万Windows程序员步入编程殿堂,成长为IT时代技术精英。 作为Windows开发人员必备参考,涵盖基础知识中高级主题,全面地介绍了Windows程序设计所涉及细枝末节,旨在帮助读者从高屋见瓴角度,建立完整知识体系,为以后职业生涯奠定良好基础。全书共3部分23章。 第1~12章着重介绍基础知识,第13~18章主题为图形,第19~23章涉及更多高级主题。 本书适合任何层次Windows程序员阅读参考,是帮助他们梳理建立Windows知识体系理想读物。 目录: 第I部分 基础知识 第1章 起步 第2章 Unicode简介 第3章 窗口与消息 第4章 文本输出 第5章 绘图基础 第6章 键盘 第7章 鼠标 第8章 计时器 第9章 子窗口控件 第10章 菜单其他资源 第11章 对话框 第12章 剪贴板 第II部分 关于图那些事儿 第13章 使用打印机 第14章 位图位块传输 第15章 设备无关位图 第16章 调色板管理器 第17章 文本字体 第18章 图元文件 第III部分 高级主题 第19章 多文档界面 第20章 多任务多线程 第21章 动态链接库 第22章 声音音乐 第23章 尝试互联网
作者Charles Petzold是著名《Programming Windows作者。全书风趣幽默,生动活泼,充满生活中实例直观插图。虽以“编码”为题,却是以“编码”为主线,深入浅出地讲解了逻辑代数、离散数学、数字电路、微机原理、汇编语言、编译原理操作系统等计算机原理方面基础知识。与计算机专业课本相比,没有艰涩定义描述,充分地把抽象内容形象化了。它可以被定位为大众化计算机科普书籍,然而与一般国内计算机科普读物相比,它信息量、专业程度绝对是高一个层次。因此很适合对计算机有一定应用基础,有兴趣了解一点计算机机理朋友。同时也可作为学习数字电路、微机原理等课程启发性引论。   对于计算机专业学生,我觉得此书同样非常值得一看。就个人体会,举一二例:在看到二进制加减实现那块,虽然自己原先清楚那些概念方法,但是基于死板公式法则,没有一个直观体会。而在《CODE》中,分别釆用实物、简单电路、十进制数进行类比,逐步揭示了补码、加法器等机理,可谓温故而知新。阅读书中对汇编语言在各个章节循序渐进引入,才发现原来汇编那些“古怪”逻辑竟是如此自然。而书中对数字电路阐述完全是基于计算机实际应用,从逻辑电路到触发器、存储器,直至微处理芯片,每一步在讲解电路原理同时都辅以如何达到应用目,让人不会觉得空洞抽象。   此书比较注重内容历史连贯性,各个章节都提及了相关技术发展史,让我们认识到数字技术与计算机发明及应用是一个逐级推进历史过程。同时一些趣闻轶事也使我们开怀一笑。另一个特点是书中不少东西是可以亲自实践(通过实物或软件仿真),比如一些简单数字电路实现。这很可能激发一些朋友自己造一块CPU冲动。   高手高就高在把深奥理论知识平民化了。总之,我觉得如果你是计算机专业学生,读了《CODE》,也许会发现原来还有一些简单道理自己并不清楚,有茅塞顿开之感。而对不了解计算机人来说,你将会豁然开朗——原来计算机并不神秘!
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值