Difference between revisions of "Intermediate C++ Game Programming Tutorial 22"

From Chilipedia
Jump to: navigation, search
(Video Timestamp Index)
(Video Timestamp Index)
Line 15: Line 15:
 
[https://youtu.be/DMdyz0lrFBI Tutorial 22 Part 1]
 
[https://youtu.be/DMdyz0lrFBI Tutorial 22 Part 1]
 
* Intro: exceptions are the main way of handling errors in C++ [https://youtu.be/DMdyz0lrFBI?t=0m10s 0:10]
 
* Intro: exceptions are the main way of handling errors in C++ [https://youtu.be/DMdyz0lrFBI?t=0m10s 0:10]
 +
** Examples of its usage in the Framework
 +
* [https://youtu.be/DMdyz0lrFBI?t=0m10s 0:10]
 
* WORK-IN-PROGRESS
 
* WORK-IN-PROGRESS
 
[https://youtu.be/_6G5yDgoWiA Tutorial 22 Part 2]
 
[https://youtu.be/_6G5yDgoWiA Tutorial 22 Part 2]

Revision as of 04:31, 11 November 2019

In this video we learn how to use C++ exceptions to take our error handling to the next level. There is a lot of fear and ignorance surrounding exceptions among "C++ Programmers", and Chili's goal here is to elevate you guys above the shit-tier level to coders who can actually use this feature to its full extent. The second part of this tutorial will give concrete, practical examples of using exceptions in an actual game scenario.

Topics Covered

  • Basic exception trying throwing and catching
  • Exceptions 'bubbling up'
  • Rethrowing with throw
  • std::exception and its derivatives
  • Polymorphism in exception handling
  • catch(...)
  • Throw by value, catch by const reference
  • Exceptions and destructors
  • noexcept and move constuctors vs. standard containers

Video Timestamp Index

Tutorial 22 Part 1

  • Intro: exceptions are the main way of handling errors in C++ 0:10
    • Examples of its usage in the Framework
  • 0:10
  • WORK-IN-PROGRESS

Tutorial 22 Part 2

Extra Discussion

I had an interesting exchange with a viewer, and made a bit of a writeup here: essay time.

Source Code

See also