划词......
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

[未读者必读]如何养成良好的编码习惯

Posted on 2007-06-19 14:37  王君  阅读(490)  评论(0)    收藏  举报
经常看到public class a,没有良好编码习惯,别人看着太吃力,你的问题也就没有人感兴趣。
请不要再用没有意义的名字来命名!

sun的编码规范
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html

中文版
http://bbs.chinajavaworld.com/post/view?bid=24&id=699610&sty=3&keywords=%B1%E0%C2%EB%B9%E6%B7%B6

Scott Ambler's codingconventions.
A lengthy document, with some of the best discussion I've seen.(这里的"I"是Spring的作者,expert one to one j2ee design and development的作者)
http://www.ambysoft.com/javaCodingStandards.html (见附件)

从最开始就养成好习惯!

本主题含有附件javaCodingStandards.pdf 354.43k