Top "Standards" questions

Standards are officially published or well agreed upon formats, procedures, or protocols.

Checking for empty arrays: count vs empty

This question on 'How to tell if a PHP array is empty' had me thinking of this question Is there …

php arrays performance standards semantics
Are there any suggestions for developing a C# coding standards / best practices document?

I'm a recent AI graduate (circa 2 years) working for a modest operation. It has fallen to me (primarily as I'm …

c# standards procedure
<nav> or <menu> (HTML5)

W3Schools.com and I'm pretty sure I remember seeing W3C.org state that <menu> should be …

html menu standards nav
Difference between void main and int main?

Does it matter which way I declare my C++ programs?

c++ standards
C++ Static member method call on class instance

Here is a little test program: #include <iostream> class Test { public: static void DoCrash(){ std::cout<< "…

c++ visual-c++ standards
Is "argv[0] = name-of-executable" an accepted standard or just a common convention?

When passing argument to main() in a C or C++ application, will argv[0] always be the name of the executable? …

c++ c standards argv
Proper URL forming with Query String and Anchor Hashtag

When both a query string and anchor tag (hash tag) are visible in a URL, what is the proper order …

php wordpress url standards url-fragment
Giving the script tag an ID

I came across a scenario where giving a script element an id attribute would solve a problem easily. However, after …

html standards scripting
Is std::stoi actually safe to use?

I had a lovely conversation with someone about the downfalls of std::stoi. To put it bluntly, it uses std::…

c++ standards language-lawyer
C/C++ int[] vs int* (pointers vs. array notation). What is the difference?

I know that arrays in C are just pointers to sequentially stored data. But what differences imply the difference in …

c++ c arrays pointers standards