From 1ec89f283ca1d3cc7eca5535f4bc19da039a6b6a Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Thu, 25 May 2023 11:44:26 +0200 Subject: [PATCH] chore: add coding rules --- CODING.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CODING.md b/CODING.md index de33c83364..0676064f60 100644 --- a/CODING.md +++ b/CODING.md @@ -3,13 +3,15 @@ iTowns needs `nodejs` (10+) and `npm` (at least 6.x) installed on the system. See the [node website](https://nodejs.org) to install node and npm. -## Coding +## Coding rules * Search and use existing methods to avoid duplicate code * Avoid instance `class/object` in method (optimization with the garbage collector) * Give explicite name to constants * Avoid duplicate code and encapsulate to simplify * For performance reasons, update objects only when needed +* Don't add dead code +* Remove obsolete comments ## Building