by Chris Pitt

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

CHAPTER 2

images

Foundation

We will begin our framework by looking at some foundational (OOP-focused) code on which the core components will be based. The first thing we will look at is how to execute code that is spread over multiple files. We will also look at what to do when we encounter errors. Finally, we will create a convenient means of sorting and retrieving class metadata.

Goals

  • We need to develop a means to load classes automatically. Classes should be located based on their names, and these names should translate into a folder hierarchy.
  • We need to understand and define custom Exception subclasses, so that we can handle the most common ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required