Flex Coding Guidelines

Fabio Terracini has recently posted an outstanding set of Flex / Actionscript 3 coding guidelines. This is a great resource for anyone looking for establishing or following coding standards when developing a Flex project. Click here to download.

7 Comments:

  1. nina

    Thank you so much for providing this.
    I am sure that it will be very helpful for many peoples.
    http://www.ipod-converter.org

  2. Toys

    I saw the flex script guidelines but unfortunately, I'm newer to the realm and I'm personally having trouble implementing them. I realize they're just guidelines, but honestly, it's hard enough to learn through everything the first time and then right when you come out of the gate, to have someone right a new list of guidelines that the industry suddenly starts following is like a nightmare come true, proportional to the week of finals and showing up at the wrong class two hours late with a paint brush in your hand instead of your thumb drive. Do you perhaps have any recommendations for someone like me, who needs a little bit of help learning and getting things organized? I would truly appreciate any insight you have that might help me become better at coding. Also, thanks for the post here. I know a lot of people slower than me won't be able to find it elsewhere.

  3. Derrick

    I wouldn't say the guidelines in the document are industry standards by any stretch (although it would be great if they, or something close were). They are however good guidelines to follow. I would especially recommend you follow something like that document for your coding since you are just starting out. It is always easier to learn something correctly the first time then to learn it wrong and they have to attempt to unlearn old habits.

  4. videolar

    One thing I don’t agree with is the declaration of a variable in the for loop:

    for (var item:String in something)

    Variables should not be declared at random points in the code, but at the top. Otherwise you could end up with a duplicate declaration in your method. The compiler will catch it, but why set yourself up for that?

    All declarations at the top of the method.

    The compiler will do this anyhow. For instance:

    a = ‘hello’;
    trace(a);
    var a:String = ‘bye’;

    The compiler doesn’t complain and the trace output is “hello”.

  5. web design

    I have read through some of your blogs about flex and really intrigued about the application builder. I'm completely new to it and would like to see any live work that has been created using teh app. Anything to see anywhere. The cross browser compatibility is so appealing. How is it different to others..?

  6. Brent Lamborn

    Thanks a ton. This is something I have been looking for since starting with Flex about a month ago.

  7. Frank

    Thanks for the beautiful article!
    I look forward to read more about you!


Leave a comment

Name: (required)

Email: (required)

URL:

Captcha test: (required)
Comments: (required)