开发者

How widespread are Actionscript3 naming conventions?

开发者 https://www.devze.com 2023-01-14 07:40 出处:网络
In 90% of the example projects I see for ActionScript / Flex I notice the 开发者_开发百科following two coding conventions:

In 90% of the example projects I see for ActionScript / Flex I notice the 开发者_开发百科following two coding conventions:

1) private member variables with getters/setters start with an underscore as in "_credentials"

and

2) interfaces start with the letter "I" as in "ISessionInfo"

Coming from the Java world, I find both of these conventions unnecessary and annoying. I am about to start a new Flex project and was planning on NOT following these conventions unless they are truly are widespread, standard conventions in the Actionscript/Flex world.


Those conventions are used wherever I've been involved with ActionScript, but you are certainly free to do what works for you, your team, or your company.

0

精彩评论

暂无评论...
验证码 换一张
取 消