standards.md

| Type | Preference | | ---- | ---------- | | Function names | camelCase | | Class names | ProperCase/PascalCase | | Variables | snake_case | | Tabs/Spaces | Tabs | | Tab width | 4 | | Wrap/No wrap | No wrap | | Single/Double quote | Single | | 1+1 or 1 + 1 | 1 + 1 | `python:` ```python import package import package as p from package import * myInt = 1 myString = 'done!' multilineArray = ['1', '2' ] multilineDict = { '1': 'one', '2': 'two' } class MyClass: """ This is my class! """ def addNums(numX, numY): print(f'{numX} + {numY} = {numX + numY}') class OtherClass: """ Call MyClass.addNums Arguments: multilineArray[1], myInt """ MyClass.addNums(int(multilineArray[1]), int(myInt)) print(myString) if not __name__ == '__main__': pass ``` `bash:` ```bash myFunction () { let int = 1 let big_int = 100 } ``` `other:` ```js function myFunction() { int int = 1 int big_int = 100 } ```
These are my personal standards when writing code.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.