Naming conventions by language
How 9 languages write the names of types, functions, variables and constants, each from its own guide. Then how to choose the words themselves.
What does my name look like in each case?
How does each language write its names?
| Language | Types | Functions | Variables | Constants |
|---|---|---|---|---|
| Python source | ShoppingCart | add_item | item_count | MAX_ITEMS |
| Java source | ShoppingCart | addItem | itemCount | MAX_ITEMS |
| JavaScript source | ShoppingCart | addItem | itemCount | not set |
| C# source | ShoppingCart | AddItem | itemCount | MaxItems |
| Go source | ShoppingCart | addItem | itemCount | maxItems |
| Rust source | ShoppingCart | add_item | item_count | MAX_ITEMS |
| Kotlin source | ShoppingCart | addItem | itemCount | MAX_ITEMS |
| Dart source | ShoppingCart | addItem | itemCount | maxItems |
| SAP ABAP source | shopping_cart | add_item | item_count | max_items |