This commit is contained in:
TheDoubleH 2021-12-14 20:50:50 +00:00
parent ca19ee8d56
commit d9c8e0231b
162 changed files with 3600 additions and 3153 deletions

View file

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Readability on AL Guidelines</title><link>https://alguidelines.dev/bcbestpractices/readability/</link><description>Recent content in Readability on AL Guidelines</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://alguidelines.dev/bcbestpractices/readability/index.xml" rel="self" type="application/rss+xml"/><item><title>Spacing Binary Operators</title><link>https://alguidelines.dev/bcbestpractices/readability/spacing-binary-operators/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/spacing-binary-operators/</guid><description>&amp;lt;Created by Microsoft, Described by waldo&amp;gt;
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Readability on AL Guidelines</title><link>https://alguidelines.dev/bcbestpractices/readability/</link><description>Recent content in Readability on AL Guidelines</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://alguidelines.dev/bcbestpractices/readability/index.xml" rel="self" type="application/rss+xml"/><item><title>Separate if and else</title><link>https://alguidelines.dev/bcbestpractices/readability/separate-if-and-else/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/separate-if-and-else/</guid><description>&amp;lt;Created by Microsoft, Described by waldo&amp;gt;
Description if and else statements should be on separate lines.
Bad code if Atom = &amp;#39;\&amp;gt;&amp;#39; then HasLogicalOperator := TRUE else begin ... end; Good code if Atom = &amp;#39;\&amp;gt;&amp;#39; then HasLogicalOperator := true else begin ... end; Discussions You can find discussions on all &amp;ldquo;Best Practices&amp;rdquo; here.
If you don&amp;rsquo;t find the discussion of this guideline, please feel fee to create a new one with the same title as this article.</description></item><item><title>Spacing Binary Operators</title><link>https://alguidelines.dev/bcbestpractices/readability/spacing-binary-operators/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/spacing-binary-operators/</guid><description>&amp;lt;Created by Microsoft, Described by waldo&amp;gt;
Description There must be exactly one space character on each side of a binary operator such as = + - AND OR =. The parameter comma operator however, should have a space after the comma.
Bad code &amp;#34;Line Discount %&amp;#34; := &amp;#34;Line Discount Amount&amp;#34;/&amp;#34;Line Value&amp;#34;*100; Good code &amp;#34;Line Discount %&amp;#34; := &amp;#34;Line Discount Amount&amp;#34; / &amp;#34;Line Value&amp;#34; * 100; Bad code StartDate := CalcDate(&amp;#39;&amp;lt;+&amp;#39;+Format(Days+i)+&amp;#39;D\&amp;gt;&amp;#39;,StartDate); Good code StartDate := CalcDate(&amp;#39;&amp;lt;+&amp;#39; + Format(Days + i) + &amp;#39;D\&amp;gt;&amp;#39;, StartDate); Bad code StartDate:=0D; // Initialize Good code StartDate := 0D; // Initialize</description></item><item><title>Suggested Abbreviations</title><link>https://alguidelines.dev/bcbestpractices/readability/suggested-abbreviations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/suggested-abbreviations/</guid><description>&amp;lt;Created by Microsoft, Described by waldo&amp;gt;
Description Whenever possible, do not use abbreviations in variables, functions and objects names.