-
Course
- Core Tech
Encapsulation and SOLID
This course teaches how to write maintainable and flexible object-oriented code.
What you'll learn
Learn how to write maintainable software that can easily respond to changing requirements using object-oriented design principles. First, you'll learn about the fundamental object-oriented design principle of Encapsulation, and then you'll learn about the five SOLID principles, also known as 'the principles of object-oriented design.' While this course is aimed at beginner to intermediate developers, it's based on decades of experience, so even advanced programmers can learn a thing or two. There are plenty of code examples along the way; while they're written in C#, they should be easily understandable to readers of Java or other curly-brace-based languages.
Table of contents
- Introduction | 28s
- Reusable Components | 1m 55s
- Most Code Sucks | 1m 22s
- Example: Code That Sucks | 3m 55s
- Why Care About Code That Sucks? | 5m 17s
- Classic OO Definition of Encapsulation | 5m 52s
- Alternative Encapsulation Techniques | 3m 56s
- Commands and Queries | 8m 8s
- Queries | 4m 7s
- Commands | 4m 14s
- CQS Makes it Easier to Reason About Code | 1m 15s
- Postel's Law | 4m 46s
- Input | 5m 31s
- Nullable References Are Evil | 2m 26s
- Fail Fast | 3m 19s
- Output | 10m 30s
- Tester/Doer | 3m 43s
- TryRead | 4m 56s
- Maybe | 7m 47s
- Synthesis | 8m 8s
About the author
Mark Seemann is the author of Dependency Injection in .NET and the inventor of AutoFixture. He is a professional programmer and software architect living in Copenhagen, Denmark, and currently an independent advisor. He enjoys reading, drawing, playing the guitar, good wine, and gourmet food.
More Courses by Mark