-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
icon: material/code-braces | ||
description: Hi | ||
--- | ||
# Coding style | ||
|
||
Consistent code style is good practice to keep code more readable across whole project, that makes it more readable and makes it easier to collaborate within a development team or contributors. | ||
|
||
## Language guidelines | ||
+ Prefer modern features and constructions than older ones | ||
+ Use latest language version (whenever it possible) | ||
+ Use language keywords for data types instead of them full name: | ||
+ `u32` but not `std::numerics::UInt32` nor `UInt32` | ||
|
||
## Prefer *fast* boolean operators | ||
+ Use fast `&&` and `||` boolean operators instead of `&` and `|` operators | ||
|
||
## Style prefer | ||
+ Use [K&R](https://en.wikipedia.org/wiki/Indentation_style#K&R) style for braces | ||
+ Prefer tabulation than spaces | ||
+ If spaces is used: use 4 spaces for indentation | ||
+ Store prefered indentation style to `.editorconfig` file of your project | ||
+ Do not make too long lines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
icon: material/format-font | ||
--- | ||
|
||
# Naming guidelines | ||
|
||
!!! warning | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ hide: | |
- toc | ||
--- | ||
|
||
# Home | ||
|
||
!!! warning | ||
|
||
Site still in developing... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
--- | ||
icon: material/cog-box | ||
--- | ||
# `nope` instruction | ||
Does nothing | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
icon: material/cog-box | ||
--- | ||
# `store` instructions | ||
|
||
!!! warning | ||
|
||
Site still in developing... | ||
Please wait |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters