Приглашаем посетить
Добычин (dobychin.lit-info.ru)

Chapter 5: Object-Oriented Programming with PHP

Table of Contents
Previous Next

Chapter 5: Object-Oriented Programming with PHP

Overview

Important 

This is a reminder that all source code and support for this book can now be found at http://www.apress.com, even though references within the chapters may point to http://www.wrox.com.

Object-oriented programming (OOP) has been around for quite some time. It began with Smalltalk and C++, and later on expanded to languages such as Java and Python. When it comes to building software applications, such as your favorite word processor or computer game, it's no longer an optional language feature. It is the standard way for software architects to develop highly maintainable, complex, and scalable solutions used in both proprietary and open source software packages.

Improved OO features in PHP4 has spurred a lot of movement in the PHP programming community. Developers are just starting to utilize the benefits of OO programming. In this chapter, we will look at OOP from the ground up, teaching you the role of OOP in PHP and how to architect elegant solutions to common problems in the web environment. We will look at using some helpful heuristics and best practices to increase code reuse and maintainability, as well as taking a look at some nifty design patterns. Before we get ahead of ourselves, let's take a look at how the OO paradigm came about and how it differs from traditional functional programming. If you are a seasoned OO developer and want specific information pertaining to PHP, you may want to skip to the Classes section.


Table of Contents
Previous Next