- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
android 编程规范(Android programming specification)
android 编程规范(Android programming specification)
Why coding specifications are needed?
Coding specifications are especially important for programmers for several reasons:
80% of the cost of a software life cycle is maintenance
Almost none of the software is maintained by the original developer throughout its lifecycle
Coding standards can improve the readability of software and allow programmers to understand new code as quickly and thoroughly as possible
If you release the source code as a product, you need to make sure that it is packaged well and clearly, just like any other product you have built
name
Packet naming
Naming rule: the prefix of a unique package name is always all lowercase ASCII letters and is a top-level domain name, usually com, edu, gov, mil, net, org. The subsequent section of the package name is not the same according to the internal naming conventions of the different organizations. Such naming conventions may distinguish between departments (Department), projects (project), machines (machine), or login (names) names in the form of a specific directory name.
For example: com.moleader.nloc.activities
Specification: packet naming must begin with com.moleader, followed by a project name (or abbreviation), followed by a module name or a hierarchical name.
For example: com.moleader. project abbreviation. Module name com.moleader.nloc.bookmark
Such as: abbreviation for com.moleader. project. Name of hierarchy com.moleader.nloc.activities
Class and interface naming
Naming rule: the class name is a noun, and the uppercase of each word is capitalized by case mixing. Try to make your class name concise and descriptive. Use full words to avoid abbreviations (unless the abbreviation is more widely used, such as URL, HTML)
Interfaces generally use able, ible, ER and other suffixes
For example: class Raster; class ImageSprite;
Specification: the class name must use the hump rule, that is, the initial letter must be capitalized. If it is a phrase, the initia
您可能关注的文档
- 诊断基金会的问题.doc
- 诊断基础B评估指导.doc
- 诊断审查问题.doc
- 诊断和治疗常见的震颤.ppt
- 诊断练习.doc
- 诊断案例讨论.ppt
- 详细怀孕测试攻略.doc
- 诊断试纸B .doc
- 诊断问题书定制.doc
- 身体健康标准测试方法.doc
- Android开发系列—定制界面风格(Android development series - custom interface style).doc
- android 3D游戏开发教程(Android 3D game development tutorial).doc
- angriod常见问题解答(The questions answered frequently by the angrier).doc
- ANSYS 结构稳态(静力)分析之经典实例-命令流格式(ANSYS structure steady-state (static) analysis of classical instance-command flow format).doc
- ANSYS_结构稳态(静力)分析之经典实例-命令流格式(Ansy_ structure steady-state (static) analysis of classical instance-command flow format).doc
- ANSYS中坐标系应用及总结(Application and summary of coordinate system in ANSYS).doc
- ansys盾构开挖建模(Ansys shield excavation modeling).doc
- ansys连续梁桥(Ansys continuous beam bridge).doc
- antonym(反义词).doc
- ApacheJKTomcat 负载平衡配置(ApacheJKTomcat load balancing configuration).doc
最近下载
- 23G409 先张法预应力混凝土管桩 conv.docx VIP
- WIP.010-SIE EBS标准化操作手册- 按订单装配 (ATO) 制造.pdf VIP
- 2025入团考试100题题库(含答案).pdf VIP
- SG111-1~2:建筑结构加固施工图设计表示方法建筑结构加固施工图设计深度图样(2008合订本).docx VIP
- 最新水利工程维护养护定额标准.docx VIP
- IQ-FMECA软件操作手册—功能与使用.pdf VIP
- WIP.006-SIE EBS标准化操作手册-资源事务处理.pdf VIP
- WIP.009-SIE EBS标准化操作手册-离散任务状态.pdf VIP
- 消防维保质量保证体系.docx VIP
- 2024年四川成都交通投资集团有限公司招聘笔试真题.docx VIP
文档评论(0)