diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2025-06-24 18:37:57 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-06-24 18:37:57 +0400 |
commit | dd71f019de0314f7b3f2ae1e0aa920e49e9f2759 (patch) | |
tree | 5b8513c4f2e7959eb45de75d93f331506b1cbd43 /posts/coding_standards.md | |
parent | 014901951cc44a70ff3d4aaa4246592b08699d69 (diff) |
refactor: everything chageddev
Diffstat (limited to 'posts/coding_standards.md')
-rw-r--r-- | posts/coding_standards.md | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/posts/coding_standards.md b/posts/coding_standards.md deleted file mode 100644 index aa2e1fd..0000000 --- a/posts/coding_standards.md +++ /dev/null @@ -1,43 +0,0 @@ -Here are my **personal** coding standards for some languages. - -## Interpreted languages -#### Never put the file extension to the source file instead use a shebang. -`` - #!/bin/sh - #!/bin/python3 - #!/bin/perl -`` - -## Posix shell -#### Always wrap variables with `"${}"` to prevent globbing. -`` - echo "${var}" - echo "${1}" - echo "${@}" -`` - -## Makefiles -#### If Makefile is fully posix complient and doesn't have anything extra add -`.POSIX:` to the beginning of the file - -## C -#### Use K&R style `if`s -`` - if (condition) { - do this; - do that; - do another; - } -`` -#### if only one line don't use curly braces. -`` - while (condition) - do this -`` - -`` - if (condition) - do this - else - do that -`` |