为了保障原创作者在本站发表文章的利益, 并维护本站原创的精神, 特声明: RIAShanghai对有以下任何情况之一的文章将不通知作者并直接进行快意删除:
- 非原创, 或者原创但一文多发;
- 各种形式的广告与吹擂;
- 不符合本站文章格式.
欢迎各位读者监督. 谢谢合作. 另: 作为Adobe正式的UG, 我们将把Adobe不定期分发的软件,书籍及各种纪念品赠送给发文活跃的作者, 共同进步.
Table of Contents
1 Introduction
1.1 Convention
1.2 Recommendation importance
1.3 Major differences with traditional code conventions
1.4 Major difference with Adobe conventions
2 Naming Conventions
2.1 General naming guidelines
2.2 Package names
2.3 Class names
2.4 Interface names
2.5 Variable/property names
2.6 Function names
2.7 Event names
2.8 Namespace names
3 File Format
3.1 File name
3.2 File content
4 Statements
4.1 Packages and imports
4.2 Declarations
4.3 Control Flows
4.4 Literals
4.5 White spaces
5 Documentation & Commenting
5.1 General rules
5.2 ASDoc
6 ActionScript Best Practices
6.1 General Programming
6.2 Logging
6.3 Testing with FlexUnit
6.4 Updating Flex SDK Regularly
Appendices
ASDoc tag reference
Comments
关键字
可以总结一下,变量命名时,要避免哪些关键字。
lw0110's Blog: http://chestnutjoelee.spaces.live.com/