Coding guidelines
Best practices for writing code in any language start with a set of programming guidelines. This is important for any development team, but crucial for projects that share code with different teams, such as Dynamics NAV.
The programming guidelines for C/AL have hardly changed in 30 years. For Navision Software A/S and later, Microsoft has always had very clear coding guidelines. Throughout the lifecycle of the application, they have been very consistent.
In January 2015, Microsoft released an updated set of guidelines, based on NAV 2015. We will discuss the most important ones.
Tip
You can find the guidelines at https://community.dynamics.com/nav/w/designpatterns/156.cal-coding-guidelines, and https://msdn.microsoft.com/en-us/library/ee414237(v=nav.80).aspx.