Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议建立Erlang编程规范 #3

Open
GoogleCodeExporter opened this issue May 25, 2015 · 7 comments
Open

建议建立Erlang编程规范 #3

GoogleCodeExporter opened this issue May 25, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

    应该建立Erlang编程规范,不然每个成员写的代码带的自己的风格太多,不利于后来者学
习。写出来后,放在Wiki里面。
    提这个Issue还有个个人目的,那就是熟悉Issue的用法。

    可以借鉴的信息:http://www.javaeye.com/topic/374167

Original issue reported on code.google.com by [email protected] on 3 Jul 2009 at 2:37

@GoogleCodeExporter
Copy link
Author

http://groups.google.com/group/ecug/files
erl-面对软件错误构建可靠的分布式系统.pdf

Erlang 创始人当年的论文! 附录就是编码规范!

Original comment by Zoom.Quiet on 3 Jul 2009 at 2:46

@GoogleCodeExporter
Copy link
Author

Original comment by Zoom.Quiet on 3 Jul 2009 at 2:49

  • Added labels: Milestone-eb0

@GoogleCodeExporter
Copy link
Author

具体的可以参考Armstrong老先生的论文。附件为英文版,Zoom.Qui
et给的链接只有中文版的。

学习使用issue中...

Original comment by [email protected] on 7 Jul 2009 at 2:15

  • Changed state: WontFix

Attachments:

@GoogleCodeExporter
Copy link
Author

+1 顶!
老范害怕现在给出编码规范,会吓跑初学者,但是:
 * 这恰恰是初学者最最应该首先习惯和掌握的,与人与己都是受益终身的知识
 * 编码规范不仅仅是 erl 本身,应该包含 eb 开发规范,至少约定:
  1. 注释风格~选择一种文档化编程工具的规范,个人推荐 Doxygen
    http://wiki.woodpecker.org.cn/moin/DoxyGen?highlight=%28doxygen%29
  2. API规范,将eb 核心组件和其它玩家开发的战队程序沟通的消息/日志/错误格式都固化下来
    但是要注意兼容性,为以后的扩展留下向后兼容的余地
  3. 目录组织规范,以后随手插件/扩展/回放器,等等第三方周边工具的增加,必须的,应该
将 
战场/时钟引擎和战队以及日志,其它工具都分别约定,整��
�到专用目录中,以便统一管理,
也便于日后热部署!
    建议:
{{{
/
+-- _tests              测试案例
+-- conf                配置
+-- contrib             第3方模块
+-- core                核心模块(战场/时钟)
+-- data                数据库
+-- ebfs                eb fights ~ 战队收集
|   +-- englandArmy     英格兰骑土
|   +-- feardFarmer     恐惧的农民
|   +-- ...
|   `-- ...
+-- docs                文档
+-- exts                扩展
+-- i18n                国际化
+-- logs                日志输出
+-- static              静态文件 (icon/logo...)
+-- util                常用工具
+-- www                 web 应用入口
|-- erlbattle           EB 启动脚本 for Linux
|-- erlbattle.bat       EB 启动脚本 forM$
|-- Makefile
|-- WinMake.bat
|-- CHANGELOG.txt       变更记要
|-- README.txt          项目简述
|-- INSTALL.txt         安装说明
`-- LICENSE.txt         许可声明
}}}



Original comment by Zoom.Quiet on 7 Jul 2009 at 2:50

@GoogleCodeExporter
Copy link
Author

reopen 真的需要!

Original comment by Zoom.Quiet on 7 Jul 2009 at 2:52

  • Changed state: New

@GoogleCodeExporter
Copy link
Author

确实有这个必要。
应该尽快落实。

Original comment by [email protected] on 21 Jul 2009 at 2:10

@GoogleCodeExporter
Copy link
Author

测试一下 没用过这个功能。

Original comment by [email protected] on 21 Jul 2009 at 3:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant