java 编程规范(java programming style guidelines)new

java 编程规范(java programming style guidelines)new

ID:18305653

大小:281.00 KB

页数:20页

时间:2018-09-16

java 编程规范(java programming style guidelines)new_第1页
java 编程规范(java programming style guidelines)new_第2页
java 编程规范(java programming style guidelines)new_第3页
java 编程规范(java programming style guidelines)new_第4页
java 编程规范(java programming style guidelines)new_第5页
资源描述:

《java 编程规范(java programming style guidelines)new》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、此为英文版,英文好些的,可以看看英文。除此之外,例子也很详细,直观,一看就懂。大家看看可以提高自己的编程风格和交流代码。JavaProgrammingStyleGuidelinesVersion6.1,March2008GeotechnicalSoftwareServicesCopyright©1998-2008Thisdocumentisavailableathttp://geosoft.no/development/javastyle.htmlTableofContent1Introductiono1.1LayoutoftheRecom

2、mendationso1.2RecommendationsImportanceo1.3AutomaticStyleChecking·2GeneralRecommendations3NamingConventionso3.1GeneralNamingConventionso3.2SpecificnamingConventions·4Files5Statementso5.1PackageandImportStatementso5.2ClassesandInterfaceso5.3Methodso5.4Typeso5.5Variableso5.6

3、Loopso5.7Conditionalso5.8Miscellaneous6LayoutandCommentso6.1Layouto6.2Whitespaceo6.3Comments·7References1IntroductionThisdocumentlistsJavacodingrecommendationscommonintheJavadevelopmentcommunity.Therecommendationsarebasedonestablishedstandardscollectedfromanumberofsources,

4、individualexperience,localrequirements/needs,aswellassuggestionsgivenin[1],[2],[3],[4]and[5].Thereareseveralreasonsforintroducinganewguidelineratherthanjustreferringtotheonesabove.Mainreasonisthattheseguidesarefartoogeneralintheirscopeandthatmorespecificrules(especiallynam

5、ingrules)needtobeestablished.Also,thepresentguidehasanannotatedformthatmakesiteasiertouseduringprojectcodereviewsthanmostotherexistingguidelines.Inaddition,programmingrecommendationsgenerallytendtomixstyleissueswithlanguagetechnicalissuesinasomewhatconfusingmanner.Theprese

6、ntdocumentdoesnotcontainanyJavatechnicalrecommendationsatall,butfocusesmainlyonprogrammingstyle.Whileagivendevelopmentenvironment(IDE)canimprovethereadabilityofcodebyaccessvisibility,colorcoding,automaticformattingandsoon,theprogrammershouldneverrelyonsuchfeatures.Sourceco

7、deshouldalwaysbeconsideredlargerthantheIDEitisdevelopedwithinandshouldbewritteninawaythatmaximizeitsreadabilityindependentofanyIDE.1.1LayoutoftheRecommendations.Therecommendationsaregroupedbytopicandeachrecommendationisnumberedtomakeiteasiertorefertoduringreviews.Layoutfor

8、therecommendationsisasfollows:n.GuidelineshortdescriptionExampleifapplicableMotivation,ba

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。