Giter Club home page Giter Club logo

Comments (2)

iazrael avatar iazrael commented on July 17, 2024

命名一直是编程史上的大难题, 我们永远也没办法统一全世界的命名规则, 但是作为一个团队, 绝对是不能允许一个项目有各式各样的名字的, 所以其实不管是什么样的规则, 只要有规则就可以了。

我们这里用下划线_而不是减号-的出发点是这样的:

1。 项目名用下划线, 可以很方便的在命令行执行一些构建命令, 如 grunt xxx_yyy, 如果是减号, 则需要 grunt 'xxx-yyy'
2。 基于上面的原因, 项目名字用下划线, 文件名用减号, 也是挺混乱的, 所以干脆都统一了, 开发者不需要太多思考

规范本身应该成为一种开发习惯, 越简单越容易执行越好。 当然全部文件命名都用减号也是可以的, 只要团队过半的成员都认同即可。

from codeguide.

BuptStEve avatar BuptStEve commented on July 17, 2024

ok, I see ~= ̄ω ̄=~

from codeguide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.