Book a Demo

Author Topic: As3 Adobe published a best practice code writing  (Read 3133 times)

maddec

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
As3 Adobe published a best practice code writing
« on: May 13, 2008, 11:00:16 pm »
Hello,

Adobe published recently a best practice code writing convention that might be useful to Sparx System, regarding Actionscript 3 code engineering. I hope that it will be taken into account if possible:
http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions

Thank you in advance for your interest.

Best regards.

Cedric M. (aka maddec)
http://analogdesign.ch

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: As3 Adobe published a best practice code writi
« Reply #1 on: May 14, 2008, 09:08:43 am »
I can't go through the whole thing at the moment, but at least portions of it are relevant to the code EA generates.

I'd recommend making specific suggestions for change (in this thread will do) where EA is not currently not meeting these guidelines.

maddec

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: As3 Adobe published a best practice code writi
« Reply #2 on: May 14, 2008, 05:42:51 pm »
Thank you for your answer.

Yes, indeed EA is compliant to most of the code writing prescriptions. I'll compare it further, and let you know here some of the irrelevances, if any.
By the way I hope that you'll take a further look at it also...

Various related questions:
Why the default value for a not set return value is :var instead of :void?
Why void, int, uint are not available by default on type combobox?
Why in class attributes | Create property implementation there isn't a radio button for actionscript?
Why import statements (written in code) are not added to the dialog Generate Code (for a selected class) header text field when we reverse engineer the code into a diagram?


Best regards.

Cedric M. (aka maddec)
http://analogdesign.ch
« Last Edit: May 14, 2008, 06:01:14 pm by maddec »