Exceptions and TDD
Channel:
Subscribers:
2,710
Published on ● Video Link: https://www.youtube.com/watch?v=GWys7Wk40J8
Exceptions are a way to:
1) Return from a function that you wouldn't otherwise be able to return a value for and
2) A way to clean up the control code of your functions so that it's both readable and handling errors correctly
TDD (we showed off GTest today) is a way to:
1) Write tests to show that your functions are correct
2) Think about your code so that you don't get trapped into just thinking about correct cases, but also edge cases and outright bad input as well, so that your code becomes bulletproof.
Other Videos By Bill Kerney
2023-08-10 | Intro to Rasterization and Shaders |
2023-08-09 | C++ Basics: Printing to the Screen, Creating Variables, Doing Algebra, and Input |
2023-08-08 | Getting Started with Unreal Engine 5 |
2023-08-01 | How to Log On to the Class UNIX Server and Use It For the First Time |
2023-05-17 | CMake Tutorial (ACM Workshop by Aaron Herr) |
2023-05-15 | C++ Multithreading with Thread and Async |
2023-05-13 | CSCI 41: End of the Semester |
2023-05-13 | Introduction to Graph Theory |
2023-05-12 | C++ Networking as easy as it can be |
2023-05-10 | Final Review |
2023-05-08 | Exceptions and TDD |
2023-05-08 | Symbols, Semantics, Definitions and Meaning. |
2023-05-05 | The Final Project Volleyshipardy |
2023-05-05 | The Software Development Lifecycle |
2023-05-05 | Setting up Github for Two Person Projects |
2023-05-03 | Bitfields Part III |
2023-05-03 | AI Voting Rights and Consciousness |
2023-05-01 | Bitfields Part II + Vim Macros |
2023-05-01 | The Trolley Problem |
2023-04-28 | C++: Bitfields in Half an Hour |
2023-04-28 | Recursive Pascal's Triangle |