In this section, we will learn some best practices to be followed during development in Dynamics AX.
Begin the variable and method names with lowercase letters like
validateFields, and so on. Begin the names of the AOT elements with capital letters such as
SalesFormLetters, and so on.
Prefix the parameters names with an underscore (
Args _args). Use meaningful and self-explanatory variable names. For example:
SalesTable salesTable and not
Code comments enhance the readability of the code and are very useful for those involved in modifying or maintaining the code. Comments should be used to describe the intent, algorithmic overview, and the logical flow.
Add XML documentation for class, class methods, and table methods. You can generate...