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》,也许会发现原来还有一些简单的道理自己并不清楚,有茅塞顿开之感。而对不了解计算机的人来说,你将会豁然开朗——原来计算机并不神秘!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值