Skip to content

joshunger/public

Repository files navigation

wants

  • unanswer Slack to task
  • GitHub inline PR diffs emails

readings

2021

Ignore single/double

git diff --word-diff-regex="[^'\"]" master... reformatted-file.yml

Avoid Nesting when you're Testing

Use the NOT operator as little as possible

The real world is very complicated; the software we write is supposed to map those complexities into applications. The result is that we often end up needing to deal with convoluted logical expressions. You should write your IF statements in such a way as to keep them as straightforward and understandable as possible. For example, expressions are often more readable and understandable when they are stated in a positive form. Consequently, you are probably better off avoiding the NOT operator in conditional expressions.

Exception:

IF NOT (arr1.count = arr2.count
   AND arr1.count = arr3.count
   AND arr1.count = arr4.count AND . . .
   AND arr1.count = arr10.count) THEN RAISE e_missing_value;

Ref: http://code.intfast.ca/viewtopic.php?t=63

vscode

chrome

Releases

No releases published

Packages

No packages published