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

doc: code style #114

Open
daiyam opened this issue Feb 23, 2020 · 0 comments
Open

doc: code style #114

daiyam opened this issue Feb 23, 2020 · 0 comments

Comments

@daiyam
Copy link
Member

daiyam commented Feb 23, 2020

https://eslint.org/docs/rules/brace-style
https://en.wikipedia.org/wiki/Indentation_style
https://github.com/google/styleguide
https://hilton.org.uk/presentations/naming-guidelines

Style

  • hard tabs (tab)
  • 4 spaces per tab
  • UpperCamelCase
    • types (including class & structs) class Foo
  • lowerCamelCase
    • variables, instances let foo
    • class & struct methods Foo::bar()
  • absolutely no hungarian notation
  • one space after a comma foo(a, b)
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