Assertiveness Training

Assertiveness Training

By Tom Christiansen
Lightning talk
Target audience: Beginner
Language: English


Liberally using assertions throughout your code to constantly check your assumptions adds reliability, readability, and execution time. The new Assert::Conditional module lets you pepper your code with any number of expressive assertions without having to pay the performance price in production. With Assert::Conditional you get to choose not only between the two classical alternatives of fully using assertions versus making the compiler pretend it never saw them in the first place, but also offers a third possibility of demoting their fatals to warnings.