Hello AX Word,
This time I came up with an idea to list top 10 coding guidelines. We would all write a better code if we followed them.
P.S. I wonder if there is beautifier tool somewhere in the market?
Be aware and take care!
This time I came up with an idea to list top 10 coding guidelines. We would all write a better code if we followed them.
- You shall use a proper case for X++ code: start variables, functions, keywords with a lower letter; start application elements with a capital letter.
- You shall indent you code appropriately.
- You shall add curly brackets around every if, else, loop, switch (except case) and while select statement.
- You shall use meaningful names of variables, functions and application elements.
- You shall add a single spaces around operators, after commas, if, else, loop keywords.
- You shall not use spaces before function parentheses, case's semi-column, ++ and -- operator, after ! (exclamation mark).
- You shall avoid using hard-coded values, especially for interface texts.
- You shall breakdown long statements.
- You shall use column style alignment.
- You shall cleanup unused code.
The list is subject to change if I get a more valuable best practice than one above. So this was named 1.0 :)
Be aware and take care!

Like
Report
*This post is locked for comments