initial "avoid too many blank lines" best practice
This commit is contained in:
parent
4fbfc28c9e
commit
7cf65b3d3b
1 changed files with 43 additions and 0 deletions
43
content/docs/BestPractices/blank-lines/index.md
Normal file
43
content/docs/BestPractices/blank-lines/index.md
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
---
|
||||||
|
title: "Avoid too many blank lines"
|
||||||
|
tags: ["AL"]
|
||||||
|
categories: ["Best Practice"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
Avoid too many blank lines.
|
||||||
|
|
||||||
|
## Bad code
|
||||||
|
|
||||||
|
```al
|
||||||
|
var
|
||||||
|
IsVisible: Boolean;
|
||||||
|
IsEditable: Boolean;
|
||||||
|
|
||||||
|
|
||||||
|
local procedure Init()
|
||||||
|
begin
|
||||||
|
IsVisible := false;
|
||||||
|
IsEditable := false;
|
||||||
|
|
||||||
|
|
||||||
|
exit(true);
|
||||||
|
end;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Good code
|
||||||
|
|
||||||
|
```al
|
||||||
|
var
|
||||||
|
IsVisible: Boolean;
|
||||||
|
IsEditable: Boolean;
|
||||||
|
|
||||||
|
local procedure Init()
|
||||||
|
begin
|
||||||
|
IsVisible := false;
|
||||||
|
IsEditable := false;
|
||||||
|
|
||||||
|
exit(true);
|
||||||
|
end;
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue