Fluent C

Principles, Practices, and Patterns

Paperback Engels 2022 1e druk 9781492097334
€ 78,53
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

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

Specificaties

ISBN13:9781492097334
Trefwoorden:Programmeren, C
Taal:Engels
Bindwijze:paperback
Aantal pagina's:250
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:4-11-2022
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface
Why I Wrote This Book
Patterns Basics
How to Read This Book
Overview of the Patterns
Conventions Used in This Book
Using Code Examples
O'Reilly Online Learning
How to Contact Us
Acknowledgments

Part I. C Patterns
1. Error Handling
Running Example
Function Split
Guard Clause
Samurai Principle
Goto Error Handling
Cleanup Record
Object-Based Error Handling
Summary
Further Reading
Outlook

2. Returning Error Information
Running Example
Return Status Codes
Return Relevant Errors
Special Return Values
Log Errors
Summary
Further Reading
Outlook

3. Memory Management
Data Storage and Problems with Dynamic Memory
Running Example
Stack First
Eternal Memory
Lazy Cleanup
Dedicated Ownership
Allocation Wrapper
Pointer Check
Memory Pool
Summary
Further Reading
Outlook

4. Returning Data from C Functions
Running Example
Return Value
Out-Parameters
Aggregate Instance
Immutable Instance
Caller-Owned Buffer
Callee Allocates
Summary
Outlook

5. Data Lifetime and Ownership
Afgekapt op 60 regels

Managementboek Top 100

€ 78,53
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Fluent C