
C 接口与实现
C interfaces and implementations
David R. Hanson · 初版 1996 年
47人推荐
63位读者提及
114次提及
为什么值得读
- 专注于大型项目与API的高复用性结构设计
- 清晰展示C语言特有的系统认知与思维风格
- 提供可移植性强的实用代码(如字符串与字典实现)
Hacker News 上怎么说
正在加载完整评论……

C interfaces and implementations
David R. Hanson · 初版 1996 年
正在加载完整评论……
……到目前为止根本算不上一本与时俱进的语言资料,而且它并没有真正提供任何关于 C 语言系统设计和结构的指导(这本来也不是它的目的)。你可以看看 Hanson 写的《C Interfaces and Implementations: Techniques for Creating Reusable Software》。那本书专注于大型项目和 API,但它能让你很好地体会到 C 语言的“思维风格”(cognitive style)。《21st Century C》的主观色彩非常浓厚,而且花了大量篇幅……
…exactly an up-to-date language resource at this point, and it doesn't really provide any guidance on the design and structure of systems in C (that's not it's purpose). You might have a look at Hanson's C Interfaces and Implementations: Techniques for Creating Reusable Software. That's focused on large projects and APIs, but it will give you a good sense of the "cognitive style" of C. 21st Century C is very opinionated, and it spends…
……适合已经掌握编程的人:Peter A. Darnell 和 Philip E. Margolis 的《C - A Software Engineering Approach》(第3版)https://www.amazon.com/Software-Engineering-Approach-Peter-D... David Hanson 的《C Interfaces and Implementations: Techniques for Creating Reusable Software》(第1版)https://www.amazon.com/Interfaces-Implementations-Techniques... 第一本写得很清楚,侧重于 ANSI C(词法、语法和语义),……
…people who already know programming: Peter A. Darnell and Philip E. Margolis C - A Software Engineering Approach (3rd ed.) https://www.amazon.com/Software-Engineering-Approach-Peter-D... David Hanson C Interfaces and Implementations: Techniques for Creating Reusable Software (!st ed.) https://www.amazon.com/Interfaces-Implementations-Techniques... The first is clearly written and focuses on ANSI C (lexis, syntax and semantics),…
……我觉得这个论点站不住脚。市面上同样有大把优秀的 C 语言书籍:* K&R 的《C Programming Language》 * Paul Davies 的《The Indispensable Guide to C with Engineering Applications》 * David Hanson 的《C Interfaces and Implementations》 * David Hanson 的《A Retargetable C Compiler: Design and Implementation》 * Abrash 写的附带大量 Quake 干货的《Graphics Programming Black Book》
…don't think this argument stands. There are just as many great C books out there: * C Programming Language - by K&R * The Indispensable Guide to C with Engineering Applications - by Paul Davies * C Interfaces and Implementations - by David Hanson * A Retargetable C Compiler: Design and Implementation - by David Hanson * Graphics Programming Black Book - by Abrash with lots of Quake goodies
过去大概 10 年里,我一直在用一个从 Hanson 的《C Interfaces and Implementations》里抄过来的 printf() 替代方案;在我的代码树里叫“fmt.c”,包含了 fmt_<star> 系列函数。它们纯粹就是字符串处理代码,因此可以轻而易举地移植到 WinAPI、OS X、Linux 和 FreeBSD。这简直太……
For the past 10 years or so, I've been using an alternative to printf() that I lifted out of Hanson's _C Interfaces and Implementations_; in my tree, it's "fmt.c", and includes the family of fmt_<star> functions. They're just string processing code, and so are trivially portable to WinAPI, OS X, Linux, and FreeBSD. This is so…
Hanson 写的《C Interfaces and Implementations》。它能把你依赖的 Python 里的很多特性带回来,比如可变长度字符串和字典。我从四月份开始要给一群 Ruby 程序员开一门为期 4 个月的周末 C 语言课程……
C Interfaces and Implementations by Hanson. It'll give you back most of the things you depend on in Python, like variable length strings and dictionaries. I'm teaching a 4-month weekend C class for Ruby programmers starting in April,…
David Hanson 的《C Interfaces and Implementations》。我正用它作为马上要给一群 Ruby/Java 程序员开的周末 C 语言课的教材,因为 CII 基本上把你在 Ruby 里能用的那些数据结构全都重新给你实现了一遍……
_C Interfaces and Implementations_ by David Hanson. I'm using it as the textbook for a weekend C class I'm about to run for a bunch of Ruby/Java programmers, because CII basically gives you back all the data structures you have in Ruby…