From f88c06332c9649048d1ef48c3f72d02b40bee471 Mon Sep 17 00:00:00 2001 From: christianbraeunlich Date: Sun, 5 Dec 2021 20:01:22 +0100 Subject: [PATCH] change nav 3-cal-coding-guidelines formatting --- content/NAVPatterns/3-cal-coding-guidelines/_index.md | 2 +- .../3-cal-coding-guidelines/design/{index.md => _index.md} | 2 -- .../design/by-reference-parameters/index.md | 2 +- .../design/with-scope-name-collision/index.md | 2 +- .../internally-used-dot-net-types/index.md | 4 +--- .../3-cal-coding-guidelines/internationalization/_index.md | 1 - .../3-cal-coding-guidelines/readability/blank-lines/index.md | 2 +- 7 files changed, 5 insertions(+), 10 deletions(-) rename content/NAVPatterns/3-cal-coding-guidelines/design/{index.md => _index.md} (95%) diff --git a/content/NAVPatterns/3-cal-coding-guidelines/_index.md b/content/NAVPatterns/3-cal-coding-guidelines/_index.md index 0caa5b25..e5d3b5ba 100644 --- a/content/NAVPatterns/3-cal-coding-guidelines/_index.md +++ b/content/NAVPatterns/3-cal-coding-guidelines/_index.md @@ -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 >}} diff --git a/content/NAVPatterns/3-cal-coding-guidelines/design/index.md b/content/NAVPatterns/3-cal-coding-guidelines/design/_index.md similarity index 95% rename from content/NAVPatterns/3-cal-coding-guidelines/design/index.md rename to content/NAVPatterns/3-cal-coding-guidelines/design/_index.md index bd4aeed7..e6278922 100644 --- a/content/NAVPatterns/3-cal-coding-guidelines/design/index.md +++ b/content/NAVPatterns/3-cal-coding-guidelines/design/_index.md @@ -6,6 +6,4 @@ weight = 490 ## **Design** -### - Find the C/AL guidelines by expanding the menu in the left. diff --git a/content/NAVPatterns/3-cal-coding-guidelines/design/by-reference-parameters/index.md b/content/NAVPatterns/3-cal-coding-guidelines/design/by-reference-parameters/index.md index ef2abb15..5cff2057 100644 --- a/content/NAVPatterns/3-cal-coding-guidelines/design/by-reference-parameters/index.md +++ b/content/NAVPatterns/3-cal-coding-guidelines/design/by-reference-parameters/index.md @@ -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. diff --git a/content/NAVPatterns/3-cal-coding-guidelines/design/with-scope-name-collision/index.md b/content/NAVPatterns/3-cal-coding-guidelines/design/with-scope-name-collision/index.md index 2d076443..37ee9917 100644 --- a/content/NAVPatterns/3-cal-coding-guidelines/design/with-scope-name-collision/index.md +++ b/content/NAVPatterns/3-cal-coding-guidelines/design/with-scope-name-collision/index.md @@ -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 diff --git a/content/NAVPatterns/3-cal-coding-guidelines/internally-used-dot-net-types/index.md b/content/NAVPatterns/3-cal-coding-guidelines/internally-used-dot-net-types/index.md index 0f7f0061..b543f50b 100644 --- a/content/NAVPatterns/3-cal-coding-guidelines/internally-used-dot-net-types/index.md +++ b/content/NAVPatterns/3-cal-coding-guidelines/internally-used-dot-net-types/index.md @@ -1,9 +1,7 @@ +++ -title = "Internally-used DotNet Types" +title = "Internally used DotNet Types" weight = 690 +++ -## **Internally used Dot Net Types** - _(Dynamics NAV 2015)_ diff --git a/content/NAVPatterns/3-cal-coding-guidelines/internationalization/_index.md b/content/NAVPatterns/3-cal-coding-guidelines/internationalization/_index.md index 8698cbee..1881ceea 100644 --- a/content/NAVPatterns/3-cal-coding-guidelines/internationalization/_index.md +++ b/content/NAVPatterns/3-cal-coding-guidelines/internationalization/_index.md @@ -6,6 +6,5 @@ weight = 700 ## **Internationalization** -### Find the C/AL guidelines by expanding the menu in the left. diff --git a/content/NAVPatterns/3-cal-coding-guidelines/readability/blank-lines/index.md b/content/NAVPatterns/3-cal-coding-guidelines/readability/blank-lines/index.md index 3c5fcdd4..a620ad0b 100644 --- a/content/NAVPatterns/3-cal-coding-guidelines/readability/blank-lines/index.md +++ b/content/NAVPatterns/3-cal-coding-guidelines/readability/blank-lines/index.md @@ -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