Top "Coding-style" questions

**DO NOT USE!

SQL formatting standards

In my last job, we worked on a very database-heavy application, and I developed some formatting standards so that we …

sql sql-server formatting standards coding-style
Is it good practice to use ordinal of enum?

I have an enum: public enum Persons { CHILD, PARENT, GRANDPARENT; } Is there any problem with using ordinal() method to check "…

java enums coding-style verbose
Good Haskell source to read and learn from

What are some open source programs that use Haskell and can be considered to be good quality modern Haskell? The …

haskell coding-style open-source
Why rename synthesized properties in iOS with leading underscores?

Possible Duplicate: How does an underscore in front of a variable in a cocoa objective-c class work? When creating a …

objective-c ios4 coding-style
Change style of ProgressDialog

Is it possible to change ProgressBar style of progress dialog. If yes, then how can I do it?

android coding-style progress-bar progressdialog
How to break a line of chained methods in Python?

I have a line of the following code (don't blame for naming conventions, they are not mine): subkeyword = Session.query( …

python coding-style pep8
Tools to find included headers which are unused?

I know PC-Lint can tell you about headers which are included but not used. Are there any other tools that …

c++ coding-style header-files
Is using assert() in C++ bad practice?

I tend to add lots of assertions to my C++ code to make debugging easier without affecting the performance of …

c++ coding-style assert
In C++, is it still bad practice to return a vector from a function?

Short version: It's common to return large objects—such as vectors/arrays—in many programming languages. Is this style now …

c++ c++11 coding-style return-value-optimization
PEP 8, why no spaces around '=' in keyword argument or a default parameter value?

Why does PEP 8 recommend not having spaces around = in a keyword argument or a default parameter value? Is this inconsistent …

python coding-style pep8