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
egg 文件命名规范 #4
Comments
这种纯类的定义文件,还是保持跟类名一直吧,也符合 react 的写法,要不然同时写 react 又写 node,会分裂。 |
我习惯下划线,文件名不和代码应该没有相关性。 |
类的话, 我这边是保持类名. 其实类名和下划线都行, 偏向前者. 如果是驼峰的, 就烧死 |
因为类名可能就是大写开头的驼峰了,如果还用下划线做分隔符的话就有混用的感觉。。 |
下划线 +1 |
那我改成小写+下划线 |
fengmk2
added a commit
to eggjs/egg-bin
that referenced
this issue
Jul 9, 2016
dead-horse
pushed a commit
to eggjs/egg-bin
that referenced
this issue
Jul 9, 2016
* chore: add security check badge * refactor: rename DevCommand.js to dev_command.js closes eggjs/egg#4 * docs: English first readme * test: use coffee@3 to run test * test: improve iron-node install
elrrrrrrr
pushed a commit
to elrrrrrrr/egg
that referenced
this issue
Feb 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我们是大写分隔,如果是类就首字母大写还是下划线分隔?
https://github.com/eggjs/egg-bin/blob/master/lib/Command.js
The text was updated successfully, but these errors were encountered: