Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 技术文章库  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Java开发规范
l_walker





发贴: 43
积分: 10
于 2004-07-18 15:59 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
这是偶整理的一份开发规范文档,和各位共享,
本文档还在完善中,所以如果有任何bugSmile或意见、建议等
请联系我,以便修改和更新

tks

附件大小受限,100K也太小了吧!;)


download:
http://www.skyinn.org/downloads/JavaDevSpec.pdf

wiki:
http://www.skyinn.org/wiki/Wiki.jsp?page=JavaDevSpec

-------------------------------------------------------
目录:
-------------------------------------------------------

第1章 绪论 5
1.1 目的 5
1.2 范围 5
1.3 版权声明 5
1.4 参考资料 5
1.5 概述 5
第2章 代码组织与风格 7
2.1 基本原则 7
2.2 缩进 7
2.3 长度 7
2.4 行宽 7
2.5 间隔 7
2.6 对齐 7
2.7 括号 8
第3章 注释 9
3.1 基本原则 9
3.2 JAVADOC 9
3.3 文件与包注释 9
3.4 类、接口注释 10
3.5 方法注释 10
3.6 其他注释 11
3.7 注释参考表 11
第4章 命名 13
4.1 基本原则 13
4.2 文件、包 13
4.3 类、接口 13
4.4 字段 14
4.5 方法 14
4.6 异常 15
4.7 命名约定表 15
第5章 声明 17
5.1 基本原则 17
5.2 包 17
5.3 类、接口 17
5.4 方法 17
5.5 字段 18
5.6 示例 18
第6章 类与接口 20
6.1 基本原则 20
6.2 抽象类与接口 20
6.3 继承与组合 20
6.4 构造函数和静态工厂方法 20
6.5 TOSTRING(),EQUALS(),HASHCODE()... 20
6.6 SINGLETON CLASS 22
第7章 方法 23
7.1 基本原则 23
7.2 参数和返回值 23
第8章 表达式与语句 24
8.1 基本原则 24
8.2 控制语句 24
8.3 循环语句 25
第9章 错误与异常 26
9.1 基本原则 26
9.2 已检查异常与运行时异常 26
9.3 异常的捕捉与处理 26
第10章 测试与BUG跟踪 27
10.1 基本原则 27
10.2 测试驱动开发 27
10.3 JUNIT单元测试 27
10.4 自动测试与持续集成 27
10.5 BUG跟踪和缺陷处理 27
第11章 性能与安全 28
11.1 基本原则 28
11.2 STRING与STRINGBUGFFER 28
11.3 集合 28
11.4 对象 28
11.5 同步 28
11.6 FINAL 28
11.7 垃圾收集和资源释放 29
第12章 其他 30
12.1 目录结构 30
12.2 CVS注释与标记 31
12.3 31
第13章 附录 32
13.1 CVS标识符 32
13.2 注释模板 32
13.3 常用缩写简表 33
13.4 版权声明模板 33
13.5 示例代码 34




从Coding Fan到真正的技术专家
作者 Re:Java开发规范 [Re:l_walker]
帅哥





发贴: 5
积分: 0
于 2004-07-19 10:10 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
DOWN来看下!哈哈——



Hibernate的优点
作者 Re:Java开发规范 [Re:l_walker]
xiaodong_1567



发贴: 0
积分: 0
于 2004-07-31 10:05 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我也试试



JAVA学习日子分享
作者 Re:Java开发规范 [Re:l_walker]
yggl





发贴: 4
积分: 0
于 2004-08-03 18:46 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
看下



JAVA学习日子分享
作者 Re:Java开发规范 [Re:l_walker]
yikid





发贴: 25
积分: 0
于 2004-08-04 11:54 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不错。。



关于 异常 。。。。 谢谢指教
作者 Re:Java开发规范 [Re:l_walker]
xiazhencun



发贴: 0
积分: 0
于 2004-08-14 12:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
制成chm就好了,我这里打不开这种文件格式,还得下载工具!



Hibernate开发指南
作者 Re:Java开发规范 [Re:l_walker]
wskyo



发贴: 0
积分: 0
于 2004-08-18 13:06 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
多谢楼主



JBuilder使用技巧
作者 Re:Java开发规范 [Re:l_walker]
CopyS



发贴: 0
积分: 0
于 2004-08-26 15:22 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
刚下完还没看呢,给你顶顶



Hibernate开发指南
作者 Re:Java开发规范 [Re:l_walker]
lkck





发贴: 2
积分: 0
于 2004-08-30 20:36 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
楼主是什么水平啊??



Eclipse使用技巧
作者 Re:Java开发规范 [Re:l_walker]
xzpy00007





发贴: 37
积分: 10
于 2004-09-01 20:14 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
very good ,this spirit is nobleness.not only valuable to yourself but also prefer to veryone.



Java应用者与<IDE/环境>
作者 Re:Java开发规范 [Re:l_walker]
littledeer1974

Garbage Collector

CJSDN高级会员


发贴: 1517
积分: 122
于 2004-09-18 21:07 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
十分感谢,支持同行! Smile


Surround yourself with people who are open to change


学java的朋友,请一起来投票让sun推出中文jdk文档!!!
作者 Re:Java开发规范 [Re:l_walker]
yyzky





发贴: 11
积分: 0
于 2004-09-25 14:26 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
DOWN中谢谢楼主



关于Jute Forum的长期发展给官方的建议
作者 Re:Java开发规范 [Re:l_walker]
debug148





发贴: 16
积分: 0
于 2004-10-06 10:07 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
me too



搞笑QQ图片
作者 Re:Java开发规范 [Re:debug148]
seawr





发贴: 20
积分: 0
于 2004-10-07 16:14 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
that's good, any english version?



Hibernate开发指南
作者 Re:Java开发规范 [Re:l_walker]
sinboy





发贴: 3
积分: 0
于 2004-10-18 12:33 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
做的非常不错,感谢楼主的努力。

我大概浏览了一下,有几个地方不觉得没有必要定义的那样严格,比如:
你在文中提到的变量对齐、参数对齐、条件对齐,如果能完全做到确实比较整齐好看,但不一定非得这样死般,况且变量对齐也不好做到,也许你在前面很费劲的把它对齐了,可是在程序编写的过程中你可能需要添加一个比前面的变量名都长的变量,可能还得重新对变量的布局进行重新的调整,这对程序开发来说显然比较浪费时间和精力。

个人观点,不知正确否?




关于女孩子从事软件开发的问题
作者 Re:Java开发规范 [Re:l_walker]
YuLimin

简单就是美

版主


发贴: 866
积分: 123
于 2004-10-18 12:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我更喜欢

{
//....
}

一一对齐的风格!



 当兵不后悔!后悔不当兵! 
超越黎明时空,追逐时代潮流!
人,是要靠自己的!简单就是美!
我的Java:http://www.Java2Class.net
我的Blog:http://YuLimin.ItEye.com

学java的朋友,请一起来投票让sun推出中文jdk文档!!!
作者 Re:Java开发规范 [Re:l_walker]
fishbob





发贴: 6
积分: 0
于 2004-10-19 10:56 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
规范定的很容易,但是能严格遵守就不容了
还是感谢楼主的努力~~!




学习java的工具(IDE)有什么?
作者 Re:Java开发规范 [Re:fishbob]
cjsdn_an





发贴: 29
积分: 0
于 2004-10-21 15:16 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
fishbob wrote:
规范定的很容易,但是能严格遵守就不容了
还是感谢楼主的努力~~!

同感~~~




为什么这个Applet不能在浏览器显示啊?
作者 Re:Java开发规范 [Re:l_walker]
wulongfei





发贴: 1
积分: 0
于 2004-10-21 16:11 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
感谢楼主!



Java应用者与<IDE/环境>
作者 Re:Java开发规范 [Re:l_walker]
l_walker





发贴: 43
积分: 10
于 2004-10-24 13:31 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Tks everybody.

A new online URL is:
http://meteor.dev.java.net/files/documents/2278/8001/JavaDevelopmentSpecification.pdf

It's my first open source project on java.net,named Meteor.
A code generator tool for J2EE application that based on Struts,Spring,Hibernate...

I commited the source code today,but I have no time to finish the document because I'm looking for a new job now in Shanghai.
So if you want to use this tool,see the source code and run the demo,
but don't run with Ant using the default build.xml because the another project is not aviable now.I will commit it later.
Any question pls send to mail_hanqing {a} yahoo.com




CJSDNer6月14日北京聚会花絮
作者 Re:Java开发规范 [Re:l_walker]
angela5978





发贴: 2
积分: 0
于 2004-10-27 13:44 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好东东



CJSDNer6月14日北京聚会花絮
作者 Re:Java开发规范 [Re:l_walker]
kylin





发贴: 61
积分: 0
于 2004-10-29 16:05 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
无论如何,顶一下



从Coding Fan到真正的技术专家
作者 Re:Java开发规范 [Re:sinboy]
gechun0214





发贴: 6
积分: 0
于 2004-10-29 18:21 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好东西,我顶!!!!



一个程序员的奋斗历程
作者 Re:Java开发规范 [Re:l_walker]
selina





发贴: 10
积分: 0
于 2004-11-07 16:44 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
thanks



我有一点感想和初学者们同享(原创)
作者 Re:Java开发规范 [Re:l_walker]
lwwbill





发贴: 24
积分: 0
于 2004-11-08 15:30 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
刚下完



Eclipse使用技巧
作者 Re:Java开发规范 [Re:l_walker]
luyingnbanbanba





发贴: 1
积分: 0
于 2004-11-19 11:05 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
硬顶!哈哈



Windows环境下的tomcat + apache配置(绝对实践操作版)
作者 Re:Java开发规范 [Re:l_walker]
april518





发贴: 65
积分: 1
于 2004-11-28 12:17 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢大哥!



JAVA学习日子分享
作者 Re:Java开发规范 [Re:l_walker]
lczhongj





发贴: 3
积分: 0
于 2005-01-10 16:52 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢了,顶!!!



Windows环境下的tomcat + apache配置(绝对实践操作版)
作者 Re:Java开发规范 [Re:l_walker]
softxi





发贴: 3
积分: 0
于 2005-01-11 14:47 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好人啊。



有了Swing为什么还要SWT?
作者 Re:Java开发规范 [Re:l_walker]
softxi





发贴: 3
积分: 0
于 2005-01-11 14:48 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好人啊。



为什么这个Applet不能在浏览器显示啊?
go to first page go to previous page  1   2   3  go to next page go to last page

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923