Testable code is code that makes automated testing quick, easy, and enjoyable. In this course, Writing Testable Code, you'll learn how to write code that is easy to test. These skills are necessary to refactor code that is difficult to test into code that is easily testable. First, you'll be introduced to testable code, and how creating seams in your code makes code testable. Next, you'll learn a series of best practices that makes testing code easier such as, simplifying object construction, working with dependencies, and managing application state. Finally, you'll explore best practices further by walking through a code demo of each practice so you can see first-hand how they're implemented. These skills will make practices like unit testing significantly easier for you. By the end of this course, you'll have the skills necessary for writing testable code.
Matthew is a data science consultant, author, and international public speaker. He has over 17 years of professional experience working with tech startups to Fortune 500 companies. He is a Microsoft MVP, ASPInsider, and open-source software contributor.
Course Overview Hi, I'm Matthew Renze with Pluralsight, and welcome to Writing Testable Code. Testable code is code that makes automated testing easy. Unfortunately, most developers never learned how to write code for testability, so they struggle with software practices like unit testing and test-driven development. However, learning how to write code that is easy to test is the first step in making automated testing quick, easy, and even enjoyable. As an overview of this course, first we'll learn about testable code and how creating seams in our code makes our code testable. Then we'll learn a series of best practices that make testing code easier such as simplifying object construction, working with dependencies, and managing application state. For each of these practices, we'll walk through an open-source demo application that applies these practices so you can see first-hand how they are implemented. By the end of this course, you'll have the skills necessary to write code that is easy to test. In addition, practices like unit testing and test-driven development will become significantly easier because you'll have a deep understanding of what makes code testable versus what makes code difficult to test. As an introductory course, there are no prerequisites for this course; however, having basic experience with at least one C-like programming language in unit testing will be beneficial, but it is not required. I'll walk you through everything you'll need to know as we progress throughout this course. So please join us today at Pluralsight and learn how to create code that is easy to test with Writing Testable Code.