Skip to content

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

License

Notifications You must be signed in to change notification settings

TheMatjaz/c_error_handling_design_patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.