Top "Coding-style" questions

**DO NOT USE!

Using true and false in C

As far as I can see there are 3 ways to use booleans in c with the bool type, from then …

c coding-style
C++ getters/setters coding style

I have been programming in C# for a while and now I want to brush up on my C++ skills. …

c++ coding-style getter-setter
Using "super" in C++

My style of coding includes the following idiom: class Derived : public Base { public : typedef Base super; // note that it could …

c++ coding-style
How do I write a RGB color value in JavaScript?

I am trying to change the color of the function swapFE() below and I can't figure out how to write …

javascript function coding-style colors rgb
What does 'foo' really mean?

I hope this qualifies as a programming question, as in any programming tutorial, you eventually come across 'foo' in the …

language-agnostic coding-style
Java naming convention for static final variables

there is a rule which says: Names representing constants (final variables) must be all uppercase using underscore to separate words (…

java coding-style
How bad is shadowing names defined in outer scopes?

I just switched to Pycharm and I am very happy about all the warnings and hints it provides me to …

python coding-style pycharm
Code line wrapping - how to handle long lines

I'm facing a particular line that is 153 characters long. Now, I tend to break things after 120 characters (of course, this …

java coding-style conventions line-breaks
cleanest way to skip a foreach if array is empty

Not a major problem but I was wondering if there is a cleaner way to do this. It would be …

php coding-style