In C/C++, method names should be capitalized and use CamelCase. (source)
…and…
In JavaScript, functions should use camelCase but should not capitalize the first letter. (source)
I will only use lower case and the underscore for word boundaries. And 4 stop tabs. For all code. JavaScript, PHP, MySQL, HTML, CSS, whatever. Consistency, folks.
In other news…
if ($view_data['icd_code_1_86001'] == '') { $view_data['icd_code_1_86001'] = ''; } if ($view_data['icd_code_2_86001'] == '') { $view_data['icd_code_2_86001'] = ''; } if ($view_data['icd_code_3_86001'] == '') { $view_data['icd_code_3_86001'] = ''; } if ($view_data['icd_code_1_86003'] == '') { $view_data['icd_code_1_86003'] = ''; } if ($view_data['icd_code_2_86003'] == '') { $view_data['icd_code_2_86003'] = ''; } if ($view_data['icd_code_3_86003'] == '') { $view_data['icd_code_3_86003'] = ''; }
Good thing that all the icd_code
variables are checked for empty and then set to empty. If they’re empty.
keamoose · Oct 27, 2017 at 11:48 am
By their own rules, should it not be spelled javaScript?
Reply
Post
tcr! · Oct 27, 2017 at 1:22 pm
YES! I will be sure to mention that if it ever comes up.
In related news, I went to edit their page to correct the JavaScript spelling (similar to how I correct articles on Wikipedia) but I was stopped at the front door. 🙄
Reply
Post
keamoose · Oct 27, 2017 at 1:54 pm
Aww. I was also gonna make a case for gitHub, wikiPedia and faceBook.
Reply
Post
tcr! · Oct 27, 2017 at 3:00 pm
How about moZilla, too?
Reply
Post
keamoose · Oct 27, 2017 at 3:13 pm
Yes! moZilla fireFox.
Reply
Post
tcr! · Oct 28, 2017 at 11:38 am
Perfect! 😁👍
Reply
Post