CHAPTER 16 PeopleCode Language Arts
Programmers apply various coding standards, practices, and patterns to mainstream programming languages. This chapter describes how we can use some of these standards, practices, and patterns with PeopleCode.
Composition over Inheritance
In Chapter 1, we used application classes to create a PeopleCode logging framework. Our logging framework consisted of a Logger interface, a LoggerBase abstract class, and two concrete Logger implementations named FileLogger and MessageBoxLogger. This inheritance-based design decision served us well for Chapter 1, but let’s consider some more complex examples.
What if we want to add encryption to logging targets? How and where would we implement encryption? If we implement ...