Defensive Coding in Java
Course info



Course info



Description
At the core of software development is a thorough knowledge of troubleshooting and debugging, but it is hardly "fun". It is better to prevent bugs, or at least react to them as early as possible. In this course, Defensive Coding in Java, you'll learn how to write safer and more robust software. First, you'll learn the concept of failing early and how to effectively use a variety of guard clauses in both methods and constructors. Next, you'll explore a set of very popular helper libraries that will make your defensive code more concise and elegant. Then, you'll see how important it is to return predictable and understandable values from your methods and you'll learn how to choose and implement them. Finally, you'll discover a variety of defensive techniques that are often overlooked, yet they greatly contribute to the overall software quality. When you're finished with this course, you'll have the necessary skills to write code that is more reliable and easier to maintain.
Section Introduction Transcripts
Course Overview
Hi everyone. My name is Andrejs Doronins, and welcome to my course, Defensive Coding in Java. In software development, the unexpected happens all the time, but that doesn't have to lead to bugs, and this course is all about being prepared and facing the unexpected. So, some of the major topics that we will cover include validating a variety of method inputs, effectively using a set of helper validation libraries, improving the return values of our own methods to prevent bugs, and last but not least, a set of defensive principles that make your code more robust and the behavior of your software more predictable. By the end of this course, you will have the necessary skills to write code that is more reliable and easier to troubleshoot. Before beginning this course, you should know how to program in Java and write in object‑oriented style. I hope you'll join me on this journey to learn how to write better software with the Defensive Coding in Java course, at Pluralsight.