O'Reilly logo

Yii Rapid Application Development Hotshot by James R. Hamilton III, Lauren J. O'Meara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Selecting Code for Reuse

Not everything we write is a good candidate for reuse. We are going to talk about some ways you can identify and isolate code for reuse. The Engage Thrusters section in this task is more of a checklist to review than a list of steps to take, but we will apply the checklist to our job module as we go.

Engage Thrusters

  1. Does the function operate on isolated tables in the database?

    For example, although many tables in your database may refer to the user table, the user information can be isolated to a user table containing username and password with some extension tables for things such as personal and contact information. It is a good candidate, because you typically know from the start if a project will need user management. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required