TheMatjaz / c_error_handling_design_patterns

A LaTeX Beamer presentation about Design Patterns in C about error handling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error handling design patterns in non-OOP languages

A academic research on how errors are handled by developers in programming languages that do not support Exceptions, using mainly examples from ISO C.

Topics

  • A brief recap over Exceptions
  • Return codes
    • Boolean codes
    • Error codes
    • Error flags
  • Using the return value's domain
  • Embedded error indicator in value
  • <errno.h>
  • <setjmp.h>
  • Code design choices with return codes

Note: the previous versions of the document (see Git Tags) contains many more slides that were removed due to the presenting time limitation.

License

The LaTeX source code and the code snippets of other programming languages contained in it are licensed under the BSD 3-Clause License.

The slides themselves, in case you were interested in only the PDF after compilation, are licensed under the CC-BY 4.0 License.

In other words, both pretty much require to acknowledge the author and that's it.

About

A LaTeX Beamer presentation about Design Patterns in C about error handling

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TeX 93.2%Language:C 6.8%