OOPS · written course
Objects, and the code that gets easier to change
Writing code that stays easy to change as it grows.
Start reading32 pages · about 165 minutes
By the end of this course
Not four pillars to recite: four tools for the same problem, which is that programs get harder to change as they grow. By the end you can read a class hierarchy, say what a program prints, spot an encapsulation leak, and explain which SOLID principle a piece of bad code is breaking.
All 32 pages
- 1The function that ate a team5 min read
- 2Classes, objects and what static really means5 min read
- 3Bringing an object into existence5 min read
- 4Belonging to the class or to the object5 min read
- 5Deciding what the outside may touch5 min read
- 6Encapsulation, and the getter that leaks5 min read
- 7Abstraction: depending on what, not how5 min read
- 8Two ways to say what something must do5 min read
- 9Inheritance, and when it is the wrong tool5 min read
- 10Two words one letter apart5 min read
- 11Polymorphism: the same call, different code6 min read
- 12How the right method gets found5 min read
- 13Has a, rather than is a6 min read
- 14When something goes wrong5 min read
- 15Designing what failure looks like5 min read
- 16Fixing the function from page one6 min read
- 17Single responsibility, open closed, Liskov6 min read
- 18Interface segregation and dependency inversion5 min read
- 19Passing in what a class needs5 min read
- 20Types as parameters5 min read
- 21Choosing where to put things5 min read
- 22The same object, or an equal one5 min read
- 23How deep does the copy go5 min read
- 24Objects that never change5 min read
- 25What a variable actually holds5 min read
- 26Memory nobody has to free5 min read
- 27Four patterns worth knowing5 min read
- 28Testing behaviour, not structure5 min read
- 29Standing in for a real collaborator5 min read
- 30Ideas worth borrowing5 min read
- 31Breaking up the class that does everything6 min read
- 32When objects are the wrong answer5 min read
Then what
Reading is the first half. When you finish, the questions for this subject test whether it went in, and every wrong option tells you why it was wrong rather than just that it was.
See the questions for OOPS