en:devmon:guidelines:variables
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:devmon:guidelines:variables [2021/08/12 09:34] – created Bruno Manzoni | en:devmon:guidelines:variables [2021/09/09 09:22] (current) – [Quantity] adminw1k1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Variable | + | |
+ | ===== Variable | ||
+ | |||
+ | ==== In General | ||
* Avoid CamelCase and variation: use **underscore** | * Avoid CamelCase and variation: use **underscore** | ||
* As short as possible to describe the " | * As short as possible to describe the " | ||
- | === With or without " | + | ==== With or without " |
* scalar($) and hash(%) without " | * scalar($) and hash(%) without " | ||
* array(@) with an " | * array(@) with an " | ||
- | === Avoid ambiguous names === | + | ==== Avoid ambiguous names ==== |
* last (final or previous) | * last (final or previous) | ||
* set (adjust or collection) | * set (adjust or collection) | ||
Line 24: | Line 27: | ||
* i, j, k, x, y, z | * i, j, k, x, y, z | ||
- | === Do not use === | + | ==== Do not use ==== |
* list, set, value, equals, data, var, | * list, set, value, equals, data, var, | ||
- | === Quantity === | + | ==== Quantity |
- | * {variable}_count | + | * scalar: |
- | * : {variable}s_count | + | * array : {variable}s_count |
- | * Hash: {variable}_count | + | * hash: {variable}_count |
- | * Linear | + | * linear |
- | * Non-Linear Structure: | + | * non-Linear Structure: |
- | === Prefix === | + | ==== Prefix |
* format: as_number, as_string, | * format: as_number, as_string, | ||
* boolean: is_number | * boolean: is_number | ||
- | === Reference === | + | ==== Reference |
* {variable}_ref | * {variable}_ref | ||
+ | |||
+ | ==== Quantity ==== | ||
+ | Array |
en/devmon/guidelines/variables.1628753672.txt.gz · Last modified: 2021/08/12 09:34 by Bruno Manzoni