Feb 26, 2021
We discussed in the previous episode how polymorphic behavior gives us a form of a common language for objects. Thus we need to consider the idea of polymorphism without side effects, so we have clear and concise commands. There is also a consistency required for this to be an approach that is truly useful.
Feb 24, 2021
We start the next series of episodes with a polymorphism overview. This is a core concept for proper object-oriented design. Likewise, we will dig into several practical ways to use this.
As with many topics, it seems best to start with a definition from Wikipedia.
Feb 22, 2021
We have discussed the accessor levels of our data. In most environments, the three levels are public, protected, and private. In this episode, we go deeper into these concepts and a practical approach to data hiding.
This level of access should be our default. It can be considered the...
Feb 19, 2021
We have developed many bad habits over the years as OOP has proliferated frameworks and tools. In this episode, we look at the practical side of data encapsulation and access levels like private, protected, and public.
Modern frameworks and tools provide ways to generate a general...
Feb 17, 2021
Data encapsulation and data hiding are terms for keeping object properties from public consumption. This concept is an essential part of object-oriented programming. We need to be able to have internal processes and values that we can change without impacting users. It also allows us to limit the impact of changes...