Defensive Coding in C#

Learn techniques for strengthening your application’s defenses against the perils awaiting it in the real world. You will see how to write clean code, create unit tests, build clear methods, and prepare for the unexpected.
Course info
Rating
(19)
Level
Beginner
Updated
Jan 2, 2020
Duration
2h 14m
Table of contents
Course Overview
Why Defensive Coding Matters
Strengthening Our Code’s Defenses
Validating Method Arguments
Handling Nulls
Returning Predictable Results
Managing Exceptions
Final Words
Description
Course info
Rating
(19)
Level
Beginner
Updated
Jan 2, 2020
Duration
2h 14m
Description

Great applications perform required operations as expected, help users enter correct data, handle system and application exceptions, and make it easy for future developers to modify and maintain the code. Defensive coding focuses on improving code comprehension through clean code, improving code quality with unit tests, and improving code predictability by building clear methods and preparing for the unexpected. In this course, Defensive Coding in C#, you will gain the ability to strengthen your application’s defenses against the perils awaiting it in the real world. First, you will learn how to improve your code comprehension by following techniques such as the Single Responsibility principle. Next, you will discover how to improve your code quality through unit tests. Finally, you will explore how to improve your code predictability by validating method arguments, handling nulls appropriately, returning predictable results, and managing exceptions. When you are finished with this course, you will have the skills and knowledge needed to strengthen your code’s defenses.

About the author
About the author

Deborah Kurata is a software developer, consultant, Pluralsight author, Google Developer Expert (GDE), and Microsoft Most Valuable Professional (MVP). Follow her on twitter: @deborahkurata

More from the author
Angular Reactive Forms
Intermediate
3h 52m
Sep 5, 2019
Angular Routing
Intermediate
4h 49m
Aug 20, 2019
More courses by Deborah Kurata
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
[Autogenerated] Hi, everyone. My name is Dipper Kurata. Welcome to my course defensive coating and C Sharp. Great applications help users enter correct data, perform required operations as expected, handle system and application exceptions and make it easy for future developers to modify and maintain the code. Defense of coding techniques are a set of programming guidelines and inhabits that will immeasurably improve your codes, comprehension, quality and predictability. Some of the major topics that we will cover include improving your codes comprehension by writing cling code and following techniques such as the single responsibility principle. Improving your codes, quality through unit tests and improving your codes. Predictability by validating method arguments with guard clauses handling Knowles appropriately, returning predictable results and managing exceptions Along the way, we'll explore some of the newer features of C Sharp, including the reference type Nell Ability features in C. Sharp eight. The enhanced couple syntax from C Sharp seven and the null conditional Operator and exception filter syntax from C. Sharp six. By the end of this course, you will learn the techniques you need to protect your code, both now and in the future from the perils of the real world. I hope you'll join me on this journey toe learn defensive coating techniques with the defensive coding and C sharp course at plural site.