charles petzold 的新书和访谈

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
    评论
作者Charles Petzold是著名《Programming Windows作者。全书风趣幽默,生动活泼,充满生活中实例直观插图。虽以“编码”为题,却是以“编码”为主线,深入浅出地讲解了逻辑代数、离散数学、数字电路、微机原理、汇编语言、编译原理操作系统等计算机原理方面基础知识。与计算机专业课本相比,没有艰涩定义描述,充分地把抽象内容形象化了。它可以被定位为大众化计算机科普书籍,然而与一般国内计算机科普读物相比,它信息量、专业程度绝对是高一个层次。因此很适合对计算机有一定应用基础,有兴趣了解一点计算机机理朋友。同时也可作为学习数字电路、微机原理等课程启发性引论。   对于计算机专业学生,我觉得此书同样非常值得一看。就个人体会,举一二例:在看到二进制加减实现那块,虽然自己原先清楚那些概念方法,但是基于死板公式法则,没有一个直观体会。而在《CODE》中,分别釆用实物、简单电路、十进制数进行类比,逐步揭示了补码、加法器等机理,可谓温故而知新。阅读书中对汇编语言在各个章节循序渐进引入,才发现原来汇编那些“古怪”逻辑竟是如此自然。而书中对数字电路阐述完全是基于计算机实际应用,从逻辑电路到触发器、存储器,直至微处理芯片,每一步在讲解电路原理同时都辅以如何达到应用目,让人不会觉得空洞抽象。   此书比较注重内容历史连贯性,各个章节都提及了相关技术发展史,让我们认识到数字技术与计算机发明及应用是一个逐级推进历史过程。同时一些趣闻轶事也使我们开怀一笑。另一个特点是书中不少东西是可以亲自实践(通过实物或软件仿真),比如一些简单数字电路实现。这很可能激发一些朋友自己造一块CPU冲动。   高手高就高在把深奥理论知识平民化了。总之,我觉得如果你是计算机专业学生,读了《CODE》,也许会发现原来还有一些简单道理自己并不清楚,有茅塞顿开之感。而对不了解计算机人来说,你将会豁然开朗——原来计算机并不神秘!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
评论

打赏作者

chensan

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值