deploy: 38a19d75d8
This commit is contained in:
parent
d4c41c7a00
commit
9c6169cd6c
175 changed files with 3887 additions and 3412 deletions
|
|
@ -6,6 +6,9 @@ Only use begin..end to enclose compound statements.
|
|||
Bad code if FindSet() then begin repeat ... until next() = 0; end; Good code if FindSet() then repeat ... until next() = 0; Bad code if IsAssemblyOutputLine then begin TestField(&#34;Order Line No.&#34;, 0); end; Good code if IsAssemblyOutputLine then TestField(&#34;Order Line No.&#34;, 0); Exception // Except for this case if X then begin if Y then //DO SOMETHING; end else (not X) Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.</description></item><item><title>Binary Operator to Start Line</title><link>https://alguidelines.dev/bcbestpractices/readability/binary-operator-line-start/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/binary-operator-line-start/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description Do not start a line with a binary operator.
|
||||
Bad code &#34;Quantity to Ship&#34; := Quantity - &#34;Quantity Shipped&#34; Good code &#34;Quantity to Ship&#34; := Quantity - &#34;Quantity Shipped&#34; Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
|
||||
If you don&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>CASE Action on next line</title><link>https://alguidelines.dev/bcbestpractices/readability/case-actions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/case-actions/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description A CASE action should start on a line after the possibility.
|
||||
Bad code case Letter of &#39;A&#39;: Letter2 := &#39;10&#39;; &#39;B&#39;: Letter2 := &#39;11&#39;; end; Good code case Letter of &#39;A&#39;: Letter2 := &#39;10&#39;; &#39;B&#39;: Letter2 := &#39;11&#39;; end; Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
|
||||
If you don&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>Comment Spacing</title><link>https://alguidelines.dev/bcbestpractices/readability/comments-spacing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://alguidelines.dev/bcbestpractices/readability/comments-spacing/</guid><description>&lt;Created by Microsoft, Described by waldo&gt;
|
||||
Description Always start comments with // followed by one space character.
|
||||
Bad code RowNo += 1000; //Move way below the budget Good code RowNo += 1000; // Move way below the budget Discussions You can find discussions on all &ldquo;Best Practices&rdquo; here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue