Cleanup and fix link
This commit is contained in:
parent
22bceb1484
commit
eb783b94ff
2 changed files with 12 additions and 13 deletions
|
|
@ -7,6 +7,7 @@ categories: ["Best Practice"]
|
||||||
_Created by Microsoft, Described by waldo_
|
_Created by Microsoft, Described by waldo_
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
`else` should not be used when the last action in the `then` part is an `exit`, `break`, `skip`, `quit`, `error`.
|
`else` should not be used when the last action in the `then` part is an `exit`, `break`, `skip`, `quit`, `error`.
|
||||||
|
|
||||||
## Bad code
|
## Bad code
|
||||||
|
|
@ -22,6 +23,7 @@ _Created by Microsoft, Described by waldo_
|
||||||
```
|
```
|
||||||
|
|
||||||
## Good code
|
## Good code
|
||||||
|
|
||||||
```al
|
```al
|
||||||
procedure SomeProcedure()
|
procedure SomeProcedure()
|
||||||
begin
|
begin
|
||||||
|
|
@ -31,7 +33,6 @@ _Created by Microsoft, Described by waldo_
|
||||||
end;
|
end;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## [Discussions](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=unnecessary+else+category%3A%22BC+Best+Practices%22)
|
## [Discussions](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=unnecessary+else+category%3A%22BC+Best+Practices%22)
|
||||||
|
|
||||||
You can find discussions on all "Best Practices" [here](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices).
|
You can find discussions on all "Best Practices" [here](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices).
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
+++
|
---
|
||||||
chapter = true
|
title: "Templates"
|
||||||
pre = "<b><i class='fas fa-clone'></i> </b>"
|
---
|
||||||
title = "Templates"
|
|
||||||
weight = 100
|
|
||||||
+++
|
|
||||||
|
|
||||||
# Templates
|
We have created some template-files that you can simply copy and use. Look at them as "Patterns for describing patterns"
|
||||||
|
|
||||||
We have foreseen some template-files that you can simply copy and use. Look at them as "Patterns for describing patterns" 😉.
|
We currently offer the following templates:
|
||||||
|
|
||||||
We have foreseen a Template:
|
- for [Patterns](/contributing/templates/patterns/) ([raw](https://raw.githubusercontent.com/microsoft/alguidelines/main/content/docs/Contributing/Templates/Patterns/index.md))
|
||||||
- for [patterns](/contributing/templates/patterns/)
|
- for [Best Practice](/contributing/templates/bestpractice/) ([raw](https://raw.githubusercontent.com/microsoft/alguidelines/main/content/docs/Contributing/Templates/BestPractice/index.md))
|
||||||
- for [guidelines](/contributing/templates/guidelines/)
|
|
||||||
|
opening the "raw" link, will allow for the best copy/paste result.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue