Skip to Content
Enterprise Development with Flex
book

Enterprise Development with Flex

by Victor Rasputnis, Anatole Tartakovsky, Yakov Fain
March 2010
Intermediate to advanced
680 pages
18h 55m
English
O'Reilly Media, Inc.
Content preview from Enterprise Development with Flex

Chapter 2. Selected Design Patterns

Life is like an ever-shifting kaleidoscope—a slight change, and all patterns alter.

—Sharon Salzberg

Design patterns suggest an approach to common problems that arise during software development regardless of programming language. For example, when you need to ensure that your application allows only one instance of a particular class, you need to implement a singleton design pattern. If you need to pass the data between different objects, you create data transfer objects (a.k.a. value objects). There are a number of books written about design patterns and their implementation in different programming languages, including ActionScript 3.0; see ActionScript 3.0 Design Patterns by William Sanders and Chandima Cumaranatunge (O’Reilly). This chapter is not yet another tutorial on patterns. The goal of this chapter is to highlight selected patterns, as you (the developer) may implement them to take advantage of the Flex framework.

While going through the examples shown in this chapter, please keep in mind that Flex is a domain-specific tool that’s aimed at creating rich UI for the Web and providing efficient communication with the server-side systems.

We realize that there are people who don’t like using the dynamic features of ActionScript, arguing that it makes the code less readable. In our opinion, there are lots of cases when dynamic features of the language can make the code concise and elegant.

All code examples from this chapter are located in two ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Agile Enterprise Application Development with Flex

Agile Enterprise Application Development with Flex

Tony Hillerson
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian

Publisher Resources

ISBN: 9780596801465Errata Page