C/AL Coding Guidelines

C/AL Coding Guidelines

https://robertostefanettinavblog.files.wordpress.com/2015/07/cal.png?w=334&h=180

You can find & download  “**CAL-Coding-Guidelines-at-Microsoft-Development-Center-Copenhagen.pdf” updated ** here: http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-58-54-01/CAL-Coding-Guidelines-at-Microsoft-Development-Center-Copenhagen.pdf

OneDrive link https://onedrive.live.com/?cid=145e2738bace1fb2&id=145E2738BACE1FB2%21518

“ALL In One” Document Vs Wiki

CAL-Coding-Guidelines-at-Microsoft-Development-Center-Copenhagen.pdf” is “all in one document”. In contrast, on this wiki, the coding guidelines are published individually. The reason is: give you the chance to comment and share your oppinion on each one.

Question: Since we’re having the guidelines, how come there is still C/AL code in NAV which doesn’t respect them?

Answer: all new C/AL code is bound to follow the guidelines (else it cannot be checked-in). However, the code that existed before the rules – it does not. We had done cleanup in a certain degree. Now we’re gradually improving the old code base as we visit various objects in order to add new functionality, however chances are that code we didn’t touch in a long time had remained in its old form.

“Microsoft Dynamics Community is looking forward to your comments!  Where you can, do provide concrete examples of the alternatives, Good and Bad”

Source Microsoft Dynamics Community link https://community.dynamics.com/nav/w/designpatterns/156.cal-coding-guidelines