Top "Standards" questions

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

What's the best way to format a phone number in Python?

If all I have is a string of 10 or more digits, how can I format this as a phone number? …

python formatting format standards libs
error: ISO C++ forbids in-class initialization of non-const static member

this is the header file: employee.h #ifndef EMPLOYEE_H #define EMPLOYEE_H #include <iostream> #include <string&…

c++ static compiler-errors standards iso
Coding Style Standards for Android

I would like to know if there is some standard code styling for Android(maybe a book?) (styling XML , Java …

android coding-style standards
Shell script templates

What would be your suggestions for a good bash/ksh script template to use as a standard for all newly …

bash unix scripting standards ksh
What is the best practice for formatting logs?

I'm writing a piece of honeypot software that will have extensive logging of interactions with it, I plan to log …

standards logging
window.innerWidth vs document.documentElement.clientWidth

Regarding window.innerWidth and document.documentElement.clientWidth, Webkit (Chrome / Safari) claims innerWidth is smaller than clientWidth. Trident and Presto claim …

javascript html dom standards w3c
What should be the valid characters in usernames?

Many web based user authentication systems don't allow usernames that contain characters other than letters, numbers and underscores. Could there …

authentication standards special-characters
Are std::vector elements guaranteed to be contiguous?

My question is simple: are std::vector elements guaranteed to be contiguous? In order word, can I use the pointer …

c++ vector standards
Is auto_ptr deprecated?

Will auto_ptr be deprecated in incoming C++ standard? Should unique_ptr be used for ownership transfer instead of shared_…

c++ standards smart-pointers auto-ptr unique-ptr
Using Unicode in C++ source code

What is the standard encoding of C++ source code? Does the C++ standard even say something about this? Can I …

c++ unicode character-encoding standards