SOLID principles

Open / Closed (O)

Software should be OPEN for extension but CLOSED for modification, add new behaviour by adding code, not by editing code that already works. An animated lesson where the diagram draws itself as the design grows.

  • Lesson 2 of 5
  • Animated diagrams

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

5 lessons, each with diagrams that draw themselves.

What you will learn

  • Open for extension, closed for modification
  • The smell: if/else on a type
  • Invert it with an abstraction

More low-level design

Watch Open / Closed (O) take shape

Sign in and the lesson opens with its diagram ready to play, and the rest of SOLID principles beside it.

DSA comes with the all labs plan and every ChaiCode batch.