... | ... | @@ -57,14 +57,14 @@ Adapted from the [Node.js Policy on Trolling](http://blog.izs.me/post/3003689370 |
|
|
## Codestyle
|
|
|
Codestyling is highly subjective, and there are many highly acceptable approaches. We would love to collaborate on code, instead of discussing style choices. Also, we would like to create an environment where contributors do not try to force code style changes for existing code to comply with some style guide other than this document. Repositories in the Memri ecosystem may have specific code style guides, and they may apply that style as part of the CI process.
|
|
|
|
|
|
## Symbol naming suggestions
|
|
|
# Symbol naming suggestions
|
|
|
- If some constructs in your code are used often, prefer short names
|
|
|
- For Swift we use Camel Case Classes, lowerCamelCase for everything else
|
|
|
|
|
|
## Lay out
|
|
|
# Layout
|
|
|
- Code should be less wide than the number of characters on a small laptop screen. That means around 160 characters. Following this rule will mean very few people will need to scroll sideways to see your code.
|
|
|
- We encourage you to put multiple lines of code that do a single thing on one line, as long as things don't get too cluttered.
|
|
|
- Avoid trailing whitespace
|
|
|
|
|
|
# Questions
|
|
|
For questions, feel free to reach out to us on the [forum](https://discourse.memri.io/) |
|
|
For questions, feel free to reach out to us on the [Discord channel](https://discord.gg/x5r99MHDpP) |