...
Here are some commonly used conventions for the identifier suffixes:
Suffix | Example | Label | Meaning |
---|---|---|---|
Diff | VolumeDiff | Volume ∆ | Represents the difference between an actual and previous value |
Abs | MarginAbs | Margin ∆ | Margin represented as an amount (typically formatted as Money) |
Pct | MarginPct | Margin % | Margin represented as a percentage (typically formatted as Percent) |
s | pxRecords | Represents a list of values |
The suffixes can be combined.
...
In order to make the auto-completion work in Studio or to be able to run TDD4C without marking the folders as a source in Studio, it is recommended to always use a different element name which is unique within the project. Also the element name "Filter" is not recommended, since the auto-completion collides with the standard Filter object used frequently by the logics.
The groovy library element names should have a suffix "Utils" (e.g. RoundingUtils, CacheUtils, DatamartUtils).
...
The general rule is to make the first letter lowercase. Even though Groovy, compared to Java, allows the first letter in uppercase, it is recommended to follow the Java convention.
Example: getCostPrice()
DF/DS/DM Fields
The general rule is to make the first letter in uppercase.
Note: In SQL queries the fields are referred to in lowercase.
...