O'Reilly logo

Learning ActionScript 3.0 by Zevan Rosser, Rich Shupe

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

Object-Oriented Design Patterns

While many programming methodologies are relatively general, they can also be quite specialized. This is true of object-oriented design patterns. One of the greatest benefits of good object-oriented programming is efficient reuse. Design patterns take the idea of reuse and apply it to code planning rather than the code itself. Ideally, established patterns can be used when planning many different OOP projects, smoothing the development process to varying degrees.

A design pattern isn't a template into which you can just copy and paste your code, but rather an approach to coding that reinforces OOP principles and helps guide code creation. Patterns focus on structure and interaction between classes and objects, rather than the classes and objects themselves, laying down a blueprint from which one or more programmers can build an application. While patterns can be useful for small projects, they really shine when used on larger projects, particularly when multiple programmers are involved. Programmers who are familiar with the pattern or patterns used will more easily understand the project and be able to contribute to the code base in a logical, productive manner that results in fewer conflicts among coding styles.

Design patterns are quite the rage these days, but they are not a requirement of object-oriented programming. If you had to organize several programmers, and all agreed that known patterns would increase efficiency, you would have an ideal ...

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