Автор: Alan Mellor
Издательство: Leanpub
Год: 2021-04-05
Страниц: 202
Язык: английский
Формат: pdf (true), mobi, epub
Размер: 10.1 MB
You've seen awful Java code and you're sick of it. Let's fix that.
Starting from Object Oriented basics, we'll add modern ideas like TDD, SOLID, Design Patterns and Hexagonal Architecture to the mix. We'll craft code we can be proud of!
In his down-to-earth style, Alan Mellor shares 25 years of what actually works using OOP at the code face.
Object Oriented Programming in Java - Done Right!
You've seen awful Java code and you're sick of it. Wasn't OOP supposed to make programming easier? Why is this code so bad?
Because it was done wrong, that's why. It wasn't even OOP code. It was a tangled mess of getters and setters, giant untestable methods and organised so badly, you'd think the keyboard just fell down some stairs.
My hope is this book gets you past ‘getter and setter’ coding and gets you into high gear using objects as they were intended to be used. It might be your first insight into how OOP fits together in the real world. Java has a reputation for being verbose. I hope this book shows you how to fix that. I want you to take away the techniques of crafting clean, powerful, readable OOP code.
This book is not an introduction to Java. It should be suitable for beginners who can write Java “Hello World” and understand the basic syntax for variables, conditionals and classes. Examples use Java 11 syntax.
We're going to learn how to do it right. You will learn:
Designing objects with behaviours and secrets
What encapsulation really means
Simplifying conditional code with polymorphism
Using Test Driven Development to find behaviours
SOLID principles - understand them, use them
Design Patterns you will actually use
Refactoring - improving your code as you learn more
Hexagonal Architecture - decoupling external systems to improve test
Handling errors with style
OOP Mistakes - how to avoid them
With your next project, you're going to code Java OOP like a champ.
Craft code you can be proud of!
Скачать Java OOP Done Right