Giter Club home page Giter Club logo

wiki's People

Contributors

bobzhang avatar bsansouci avatar chenglou avatar glennsl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wiki's Issues

Question: What code conventions to use?

  1. Should names be js-y (forEach) or ml-y (for_each)? Reason is going for js-y, and the npm ecosystem is obviously js-y, yet many bindings seem to go for ml-y naming.
  2. What about file naming? BS has some constraints here, e.g. no dasherized filenames allowed.
  3. Standard prefix or postfix for module signatures? E.g. IModule, Module_Sig or MODULE
  4. Should types follow the same convention as functions and variables, or be different?
  5. Constants?
  6. Prefer short names for brevity or long names for clarity?
  7. Should comments be placed before or after the code they address.
  8. Tabs or spaces? 2 or 4 spaces per indent level?
  9. Prefer piping or intermediate let bindings?
  10. Prefer labeled and optional arguments when several arguments have same type? Append a unit argument when all arguments are labeled?
  11. Prefer let f : int -> string = fun x ->... over let f (x: int): string = ...?
  12. Place vertical bar | indented or leveled with the enclosing structure in variant defintions, match expressions and piping?
  13. How to break long lines?
  14. Exit branches first or last in a pattern match?
  15. Named convention for "overloading" externals (#4 (comment))
  16. Naming convention for list destructuring (#4 (comment))

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.