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

Reusing Code – Making a New Game

Code reusability and maintainability are often touted as two of the most important aspects of corporate software development. Object-oriented programming and MVC frameworks have acquired a great deal of popularity due to the ease of reusing and maintaining code that uses these methodologies. We will make a new game, where an author is given, and you pick the comic book they wrote. We will reuse a lot of the code we wrote in this task so far, and so we should be able to quickly cobble together a new game.

Prepare for Lift Off

The Hangman database table can be repurposed as a general table for both games, but it is obviously now misnamed and will also need some minor changes to be suitable for both games. Let's ...

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