fluent_c_-_principles_practices_and_patterns_document_outline

Fluent C - Principles, Practices, and Patterns Document Outline

Return to Fluent C Table of Contents, Fluent C, C Language Design Patterns, C Language, C Language Bibliography, C Language Courses, C Language DevOps - C Language CI/CD, C Language Security - C Language DevSecOps, C Language Functional Programming, C Language Concurrency, C Language Data Science - C Language and Databases, C Language Machine Learning, C Language Glossary, Awesome C Language, C Language GitHub, C Language Topics

“ (FlueC 2023)

Document Outline

Cover

Copyright

Table of Contents

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 Chapter

1. Error Handling Running Example

Function Split Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Guard Clause Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Samurai Principle Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Goto Error Handling Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Cleanup Record Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Object-Based Error Handling Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Further Reading

Outlook

Chapter 2. Returning Error Information

Running Example

Return Status Codes Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Return Relevant Errors Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Special Return Values Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Log Errors Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Further Reading

Outlook

Chapter 3. Memory Management

Data Storage and Problems with Dynamic Memory

Running Example

Stack First Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Eternal Memory Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Lazy Cleanup Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Dedicated Ownership Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Allocation Wrapper Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Pointer Check Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Memory Pool Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Further Reading

Outlook

Chapter 4. Returning Data from C Functions

Running Example

Return Value Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Out-Parameters Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Aggregate Instance Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Immutable Instance Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Caller-Owned Buffer Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Callee Allocates Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Outlook

Chapter 5. Data Lifetime and Data Ownership

Stateless Software-Module Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Software-Module with Global State Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Caller-Owned Instance Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Shared Instance Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Further Reading

Outlook

Chapter 6. Flexible APIs

Header Files Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Handle Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Dynamic Interface Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Function Control Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Further Reading

Outlook

Chapter 7. Flexible Iterator Interfaces Running Example

Index Access Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Cursor Iterator Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Callback Iterator Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Further Reading

Outlook

Chapter 8. Organizing Files in Modular Programs Running Example

Include Guard Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Software-Module Directories Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Global Include Directory Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Self-Contained Component Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

API Copy Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Outlook

Chapter 9. Escaping

Avoid Variants Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Isolated Primitives Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Atomic Primitives Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Abstraction Layer Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Split Variant]] Implementations Context

Problem

Solution

Consequences

Known Uses

Applied to Running Example

Summary

Further Reading

Outlook

Part II. Pattern Stories Chapter 10. Implementing Logging Functionality The Pattern Story File Organization

Central Logging Function

Logging Source Filter

Conditional Logging

Multiple Logging Destinations

File Logging

Cross-Platform Files

Using the Logger

Summary

Chapter 11. Building a User Management System The Pattern Story Data Organization

File Organization

Authentication: Error Handling

Authentication: Error Logging

Adding Users: Error Handling

Iterating

Using the User Management System

Summary

Chapter 12. Conclusion What You've Learned

Further Reading

Closing Remarks

Index

About the Author

Colophon

” (FlueC 2023)

Fair Use Source: 1492097330 (FlueC 2023)

Fair Use Sources

C Language: C Fundamentals, C Inventor - C Language Designer: Dennis Ritchie in 1972; C Standards: ANSI X3J11 (ANSI C); ISO/IEC JTC 1 (Joint Technical Committee 1) / SC 22 (Subcommittee 22) / WG 14 (Working Group 14) (ISO C); C Keywords, C Pointers, C Data Structures - C Algorithms, C Syntax, C Memory Management, C Recursion, C on Android, C on Linux, C on macOS, C on Windows, C Installation, C Containerization, C Configuration, C Compiler, C IDEs (CLion), C Development Tools, C DevOps - C SRE, C Data Science - C DataOps, C Machine Learning, C Deep Learning, C Concurrency, C History, C Bibliography, Manning C Programming Series, C Glossary, C Topics, C Courses, C Standard Library, C Libraries, C Frameworks, C Research, C GitHub, Written in C, C Popularity, C Awesome List, C Versions. (navbar_c)

Design Patterns: Design Patterns - Elements of Reusable Object-Oriented Software by GoF, Awesome Design Patterns, Awesome Software Design, Pattern, Design, Anti-Patterns, Code Smells, Best Practices, Software Architecture, Software Design, Design Principles, Design Patterns Bibliography, C Language Design Patterns, C++ Design Patterns, C# Design Patterns, Golang Design Patterns, Java Design Patterns, JavaScript Design Patterns, Kotlin Design Patterns, Node.js Design Patterns, Python Design Patterns, TypeScript Design Patterns, Scala Design Patterns, Swift Design Patterns. (navbar_designpatterns)


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


fluent_c_-_principles_practices_and_patterns_document_outline.txt · Last modified: 2024/04/28 03:52 (external edit)