Read the statement by Michael Teeuw here.
Config Error
-
@PHAGE-GOV and finding your way on the next error. After 3 years I still make them
-
@sdetweil yeah, but npm run config:check was such a life saver
-
one of the biggest tips I can give you is to throw out everything you know about capitalization…
Welcome_message
is different fromwelcome_message
Most of the time, with RARE exception, the initial letter is lowercase.
javacriptIsWeird
-
@BKeyport no… it is entirely up to the author of the module what case is used.
there are no rules…only thing is javascript is case sensitive
var foo
is different than
var fOo
etc…the config code doesn’t care, it takes all the settings and makes an object
the module then looks for specific items… almost NEVER checking for case mismatchconfig.foo
will NOT find
config.fOoit is NOT an error to config if fOo is not present.
filenames on linux are also case sensitive
-
@sdetweil That’s effectively what I said… I’m working from within the naming conventions typically used by module authors, including myself, and trying to stress that case is important, because if you come from a world where it’s not (DOS/Windows, perhaps?) it takes some getting used to.
bottom line,
Welcome_message
is not the same aswelcome_message
-
@BKeyport said in Config Error:
I’m working from within the naming conventions typically used by module authors
i didn’t know there were any conventions! least I don’t follow anything written anywhere
-
@sdetweil said in Config Error:
i didn’t know there were any conventions! least I don’t follow anything written anywhere
Naming conventions are not must, but it is used to make code more readable and understandable.
A quick google came up with this useful page:https://github.com/ktaranov/naming-convention/blob/master/JavaScript Name and Coding Conventions.md
-
@evroom i have been coding for 45 years… i know what they are and know what good ones produce…
however, specific casing has always been a useless conversation…
make names meaningful, use case where appropriate…
i don’t follow camelcase, or any other std. -
@sdetweil said in Config Error:
i know what they are and know what good ones produce…
Cannot tell from your reply, if you were offended by my post, but please don’t be.
First of all you are the most appreciated and by far the most active member on the Forum and if it weren’t for you, less people would succeed with their installs and less people would be using MM.
But you did say “i didn’t know there were any conventions!”, hence my reply, a bit naïve perhaps.
Probably you meant so say it within the context of programming MM modules.
I had better addressed the link to @BKeyport so that he could take notice, but in principle it was meant for those interested (and do not know that in MM “Welcome_message is not the same as welcome_message”).Have a nice day,
-
@evroom “convention” isn’t the right word here, perhaps. I’m almost leaning to “peer pressure” perhaps? Doing it because it seems everyone else is? 🤣🤣🤣