Fluent C: Principles, Practices, and Patterns (Paperback)

Preschern, Christopher

買這商品的人也買了...

相關主題

商品描述

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 程式設計師提供關於設計決策的指導,包括如何在建立大型程式時逐步應用這些決策到運行的程式範例中。

設計模式社群的領先成員 Christopher Preschern 回答了一些問題,例如如何結構化 C 程式、處理錯誤處理或設計靈活的介面。無論您是尋找特定的模式還是某個特定主題的設計選項概述,本書將向您展示如何專門為 C 程式設計語言實施實踐設計知識。

您將找到以下設計模式:

- 錯誤處理
- 返回錯誤資訊
- 記憶體管理
- 從 C 函數返回資料
- 資料生命週期和擁有權
- 靈活的 API
- 靈活的迭代器介面
- 在模組化程式中組織檔案
- 逃離 #ifdef 地獄

作者簡介

Christopher Preschern is a leading member of the design patterns community. He actively takes part in the organization of design pattern conferences and in initiatives to improve pattern writing. As a C programmer at the company ABB he gathered and documented hands-on knowledge on how to write industrial strength code. He lectured at the technical university of Graz courses on coding & quality and he holds a PhD in computer science.

作者簡介(中文翻譯)

Christopher Preschern是設計模式社群的領先成員。他積極參與設計模式會議的組織工作,並參與改進模式撰寫的倡議。作為ABB公司的C程式設計師,他收集並記錄了如何撰寫工業強度程式碼的實用知識。他在格拉茨技術大學講授了有關編碼和品質的課程,並擁有計算機科學博士學位。