From feb17434252d76cd81ec41f6b1d41f6bdbad8a99 Mon Sep 17 00:00:00 2001 From: Barry Kane Date: Fri, 10 Feb 2023 23:33:36 +0000 Subject: [PATCH] Added naming rule 2 --- SilverMUD.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SilverMUD.org b/SilverMUD.org index 6e0ad4b..8fc4d46 100644 --- a/SilverMUD.org +++ b/SilverMUD.org @@ -82,4 +82,10 @@ should consider if it would be better to break mathematical convention for clarity inside the program, such as when the variable names are the first letter of a word or the mathematical notation uses many similar looking variables. +**** Rule 2: Prefer to use full words in variable and function names: +You should always prefer to use full words in variable and function names. It +makes the source code much easier to read, like a sentence. Ideally, if you want +to shorten the name, use synonyms or rephrasing before you resort to removing +letters. + *** Comments: