Chapter 3. Object-Oriented Programming
In this chapter, you'll learn the concepts behind object-oriented programming (OOP), a style of coding in which related actions are grouped into classes to aid in creating more-compact, effective code.
The backend of the project you'll be building in this book is heavily based on OOP, so the concepts covered in this chapter will be referenced often throughout the rest of the exercises you'll complete.
Understanding Object-Oriented Programming
As stated above, object-oriented programming is a style of coding that allows developers to group similar tasks into classes. This helps keep code following the tenant "don't repeat yourself" (DRY) and easy-to-maintain.
Note
For further reading on DRY programming, see http://en.wikipedia.org/wiki/Don't_repeat_yourself ...
Get Pro PHP and jQuery now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.