[Reprinted] 10 things a good Flex Developer needs to know

Source: Internet
Author: User

Original article: http://blog.flexdevelopers.com/2010/04/10-things-good-flex-developer-should.html

Http://bbs.9ria.com/viewthread.php? Tid = 54144 & from = recommend_f

 

To become a Good flex programmer, just know how to use the flex built-in container andComponentsIt is not enough, and it is far from enough.

The following are my views on this issue... and some resources and keywords are provided. You can easily find these keywords through Google.

1. Object-Oriented Programming (OOP)

ActionScript 3 is the cornerstone of flex and is a fully object-oriented language. Although the concept of object-oriented is not well understood, object-oriented programming is a prerequisite for learning flex. If you have an object-oriented programming (Java, C #, Ruby, etc.), then you can get started quickly. If you don't have one, you need to learn from this OOP book sooner or later.

    • Java
    • Use ActionScript 3.0 for Object-Oriented Programming

 

Note: Some may ask-"What about the design model ?" Let's take a step, OK? You should first learn about classes and objects, interfaces, inheritance, combinations, polymorphism, encapsulation, and so on. You can only learn the design mode after learning this. In fact, if I want to write an article named "a great flexDevelopment10 pieces of content that need to be known"ArticleThen the design mode will be the first.

2. ActionScript/mXML

ActionScript works with mxml to develop flexApplicationProgram. Mxml is a tag-based declarative language written in XML. Each label is mapped to a corresponding ActionScript class. Mxml is mainly used to deploy user interfaces, while ActionScript is used to implement business logic. Of course there are exceptions.

The flex framework includes hundreds of ActionScript classes and interfaces to help you develop flex applications. Your proficiency in ActionScript and mxml directly affects your technical skills.

    • Learn flex in one week
    • Tour de flex
    • Essence of programming in ActionScript 3.0

 

Note: You should be familiar with Flex language reference. As a Flex Developer, you basically use it every day.

3. debugging

Developers spend a lot of time debugging. Obviously, debugging needs to find the root cause of the error. However, debugging is also a good way to learn new languages.

Fortunately, there are a lot of available onlineToolsFor debugging. Take some time to learn how to use these tools. Soon the time you spent will bring you benefits.

    • FlashBuilder4 deBugGER
    • De monsterdebugger
    • KAP inspect

4,EventDriver Programming

Flex applications are event-driven. Each action is the result of an asynchronous event.

As a Flex Developer, you must know how to respond to events, create events, and throw events. To achieve this, you must have a full understanding of the Flex event structure. That is to say, you must be familiar with the following concepts:

    • Built-in events (Flash Player or flex framework events)
    • Custom events (events defined by the developer inherit from the event class or its subclass)
    • Event throw and event broadcast (view the eventdispatcher class and its dispatchevent method)
    • Event listening and event processing (view the eventdispatcher class and its addeventlistener and removeeventlistener methods)
    • Event stream (capture, target, and bubble phase; Difference between target and currenttarget)
    • Default event behavior (view the event class and its subclass and preventdefault method)

5,DataBind

On the surface, data binding is easy to understand. SetAttributeAnd the value of another property. When the value of the source attribute changes, the value of the Target attribute also changes.

However, if you use data binding at will, the program performance will be affected. A thorough understanding of data binding can help you decide when to use data binding and when not.

Flex tips-using Bindable metadta events
Michael labriola's Presentatin entitled diving in the Data Binding waters

6. Project Renderer (item Renderer)

One feature of a well-designed flex application is its visually convincing way of displaying data. Flex provides some list-based controls for displaying data (DataGrid, List, tilelist, horizontallist, etc ). However, only by using the project Renderer can these list-based controls customize the data display mode.

    • Flex examples-item renderers in practice
    • A deep dive into flex 4 lists and layouts

7. Access Remote Data

Have you ever seen any applications that do not need to deal with data? I have never seen it. Learn how to use httpservice,WebService and remoteobject to obtain data. A flex structure framework may help you (see point 9th)

    • Retrieving and handling data with httpservice
    • Retrieving and handling data With WebService
    • Retrieving and handling data with remoteobject

8. style/skin

Do not forget that flex is a graphical user interface technology, so there are some design expectations. As a Flex Developer, you should know how to customize the appearance of your flex application through CSS styles or other methods.

There is no excuse to use flex 4. Spend some time developing your right brain. This is a good change, and it can differentiate you from other flex developers.

    • Flex style Explorer
    • Scalenine
    • Introduction to flex: Part 3-styles & skins

9. At least one flex framework

Most of the Flex architecture frameworks implement the MVC design. In addition, many frameworks govern yourCodeOrganization and packaging methods.

Although some people will think that using the framework is unnecessary, I believe that even using only one framework will benefit a Flex Developer. Simply looking at a technology (good or bad) using a framework to solve some structural problems can help you grow as a developer or architect.

In addition, you cannot deny that if you have experience using the framework, your job competitiveness will be improved in essence. Jess warden recently told me that "only a few shops do not use frameworks, but this is rare. Whether you like it or not, using the framework has become a 'fashionist '." I agree with him.

    • CAirNgorm
    • Parsley
    • Puremvc
    • Mate
    • Swiz
    • Robotlegs

10. Life Cycle and display list of components

Previously, I didn't need to learn the lifecycle and display list of flex components until I first wrote custom components. Previously, I used built-in flex components and was pleased to have mxml help me process the display list. I have never used the addchild, createchildren, or commitproperties methods. I have used the creationcomplete event to do everything.

My first custom component uses many asynchronous events, and I cannot predict the order of event processing. However, after I learned the flex component lifecycle method, I re-mastered the control.

These lifecycle methods have long been available. Learn how they work and use them to help you solve problems. The less hair you lose, the better your life will be.

    • Colin moock's lost ActionScript weekend-the display list
    • Creating new components in Flex 3
    • Diving deep with the flex component lifecycle
    • Understanding the Flex 3 component and framework Lifecycle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.