Book Description
Expert advice on C programming is hard to find. While much help is available for object-oriented programming languages, there’s surprisingly little for the C language. With this hands-on guide, beginners and experienced C programmers alike will find guidance about design decisions, including how to apply them bit by bit to running code examples when building large-scale programs.
Christopher Preschern, a leading member of the design patterns community, answers questions such as how to structure C programs, cope with error handling, or design flexible interfaces. Whether you’re looking for one particular pattern or an overview of design options for a specific topic, this book shows you how to implement hands-on design knowledge specifically for the C programming language.
You’ll find design patterns for:
- Error handling
- Returning error information
- Memory management
- Returning data from C functions
- Data lifetime and ownership
- Flexible APIs
- Flexible iterator interfaces
- Organizing files in modular programs
- Escaping #ifdef Hell
中文:
书名:流利的C: 原则、实践和模式
关于C编程的专家建议很难找到。虽然面向对象的编程语言有很多帮助,但c语言却很少。有了这个动手指南,初学者和经验丰富的C程序员都将找到有关设计决策的指导,包括如何在构建大型程序时将它们一点一点地应用于运行代码示例。
设计模式社区的主要成员Christopher Preschern回答了诸如如何构造C程序,应对错误处理或设计灵活的界面等问题。无论您是在寻找一种特定的模式还是针对特定主题的设计选项的概述,本书都向您展示了如何实现专门针对C编程语言的动手设计知识。
您会发现以下方面的设计模式:
- 错误处理
- 返回错误信息
- 内存管理
- 从C函数返回数据
- 数据生命周期和所有权
- 弹性api
- 灵活的迭代器接口
- 模块化程序组织文件
- 逃离 # ifdef地狱
评论前必须登录!
注册