Reviewing S.O.L.I.D

Thomas J. Kennedy

Contents:

1 Where We Started

During the first week of class under The Beginning in the orientation module we briefly discussed S.O.L.I.D. We split the acronym (i.e., S.O.L.I.D. into two parts).

S.O.L.I.D = (S.O.) + (L.I.D.)

S.O. can be discussed using only the knowledge from CS 250. Any extra knowledge from CS 330 or CS 361 is a bonus.

What is S.O.? No, it is not a sarcastic child.

These emerge naturally out of how we write code. We want to write reusable functions and classes. We want to be able to extend those functions and classes without modifying the underlying code. Think about:

We used these ADTs (in the case of Java) interfaces throughout our examples, discussions, and assignments.

2 What About the L.I.D?

What about the remaining three (3) letters?

3 Combining Everything

Now that we have covered inheritance and subtyping, we can combine everything, including the L: