change nav 3-cal-coding-guidelines formatting

This commit is contained in:
christianbraeunlich 2021-12-05 20:01:22 +01:00
parent bbfce1f9dc
commit f88c06332c
7 changed files with 5 additions and 10 deletions

View file

@ -17,7 +17,7 @@ Answer: all new C/AL code is bound to follow the guidelines (else it cannot be c
We're looking forward to your comments. Where you can, do provide concrete examples of the alternatives, Good and Bad.
[watch?v=z6skKy0pkmU&list=PLhZ3P LY7CqmVszuvtJLujFyHpsVN0Uw&index=26][anchor2]
{{< youtube z6skKy0pkmU >}}

View file

@ -6,6 +6,4 @@ weight = 490
## **Design**
###
Find the C/AL guidelines by expanding the menu in the left.

View file

@ -1,5 +1,5 @@
+++
title = "By Reference Parameters.md"
title = "By Reference Parameters"
weight = 280
+++
Do not declare parameters by reference if their values are not intended to be changed.

View file

@ -4,7 +4,7 @@ weight = 1450
+++
Do not use the WITH scope when it has a variable whose name is the same as a local variable. This can lead to wrong code assumptions.
**Given that **"Contract Type" is a field on table ServiceContractHeader, then in the following example there is a parameter name clash with the field name. Which one will be used?
**Given that** "Contract Type" is a field on table ServiceContractHeader, then in the following example there is a parameter name clash with the field name. Which one will be used?
Bad code

View file

@ -1,9 +1,7 @@
+++
title = "Internally-used DotNet Types"
title = "Internally used DotNet Types"
weight = 690
+++
## **Internally used Dot Net Types**
_(Dynamics NAV 2015)_

View file

@ -6,6 +6,5 @@ weight = 700
## **Internationalization**
###
Find the C/AL guidelines by expanding the menu in the left.

View file

@ -1,5 +1,5 @@
+++
title = "Blank Lines.md"
title = "Blank Lines"
weight = 260
+++
Do not use blank lines at the beginning or end of any functions, after BEGIN, before END, or inside multiline expressions. Bad code