Defensive Coding in Java

Bugs happen, but you can certainly implement a set of practices to catch them early or even prevent them. In this course, Defensive Coding in Java, you will learn how to make your code safer and more robust.
Course info
Rating
(44)
Level
Beginner
Updated
Nov 13, 2019
Duration
2h 33s
Table of contents
Description
Course info
Rating
(44)
Level
Beginner
Updated
Nov 13, 2019
Duration
2h 33s
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.

About the author
About the author

Andrejs is a Quality Assurance professional and participates in the entire SDLC - from requirements analysis, to test creation and their automation.

More from the author
Fundamentals of Test Automation in Java
Intermediate
2h 31m
Aug 25, 2020
Java: Refactoring to Design Patterns
Intermediate
1h 26m
Jan 10, 2020
More courses by Andrejs Doronins
Section Introduction Transcripts
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.