10.12.2012 Views

ActionScript 3.0 Design Patterns.pdf - VideoTutorials-bg.com

ActionScript 3.0 Design Patterns.pdf - VideoTutorials-bg.com

ActionScript 3.0 Design Patterns.pdf - VideoTutorials-bg.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 1 CHAPTER 1<br />

Object-Oriented Programming, <strong>Design</strong><br />

<strong>Patterns</strong>, and <strong>ActionScript</strong> <strong>3.0</strong>1<br />

The Pleasure of Doing Something Well<br />

Let it be your constant method to look into the design<br />

of people’s actions, and see what they would be at, as<br />

often as it is practicable; and to make this custom the<br />

more significant, practice it first upon yourself.<br />

—Marcus Aurelius<br />

The life history of the individual is first and foremost<br />

an ac<strong>com</strong>modation to the patterns and standards<br />

traditionally handed down in his <strong>com</strong>munity.<br />

—Ruth Benedict<br />

At the lowest cognitive level, they are processes of<br />

experiencing, or, to speak more generally, processes of<br />

intuiting that grasp the object in the original.<br />

—Edmund Husserl<br />

The idea of design patterns is to take a set of patterns and solve recurrent problems.<br />

At the same time (even in the same breath), the patterns reflect good object-oriented<br />

programming (OOP) practices. So, we cannot separate OOP from design patterns,<br />

nor would we want to do so.<br />

In answering the question of why bother with design patterns, we are really dealing<br />

with the question of why bother with OOP. The standard response to both design<br />

patterns and OOP often points to working with a team of programmers and speaking<br />

the same language. Further, it’s easier to deal with the <strong>com</strong>plexities involved with<br />

programming tasks requiring a division of labor for a large project using an object<br />

metaphor and practices.<br />

In addition to coordinating large projects, programmers use both OOP and design<br />

patterns to deal with change. One key, important element, of design patterns is that<br />

they make changing a program much easier. The bigger a program and the more<br />

time you’ve spent developing it, the greater the consequences in making a change to<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!