Saturday, January 10, 2015

CAL Coding Guidelines at Microsoft Development Center

Hi All,

Microsoft has share CAL development guidelines. This is for your reference and future use.


Detail :
The plan is to simply expose what we use now. And more important, to say that guidelines could be used. Debate on individual guidelines can become heated for any programming language, but the benefit of using some or other guidelines stays.

For us, those guidelines are enforced at check-in time - we are using a tool which verifies and only allows compliant check-ins. While this tool is internal and not ready to publish, we had anyways decided to open up and present the rules we use to the community, as inspiration.

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.



No comments:

Post a Comment