Top "Coding-style" questions

**DO NOT USE!

Why use a for loop instead of a while loop?

Possible Duplicates: Iterate with for loop or while loop? Loops in C - for() or while() - which is BEST? …

loops coding-style control-flow
Chained method calls indentation style in Python

From reading PEP-8, I get it that you should put the closing parenthesis on the same line as the last …

python django coding-style pep8
When is a function too long?

35 lines, 55 lines, 100 lines, 300 lines? When you should start to break it apart? I'm asking because I have a function with 60 …

function refactoring coding-style
Best practice: ordering of public/protected/private within the class definition?

I am starting a new project from the ground up and want it to be clean / have good coding standards. …

oop coding-style class-design
Python "private" function coding convention

When writing a python module and functions in it, I have some "public" functions that are supposed to be exposed …

python python-2.7 coding-style naming conventions
In Python, when should I use a function instead of a method?

The Zen of Python states that there should only be one way to do things- yet frequently I run into …

python function coding-style methods
Use a 'goto' in a switch?

I've seen a suggested coding standard that reads Never use goto unless in a switch statement fall-through. I don't follow. …

c# coding-style switch-statement goto
Correct way to define C++ namespace methods in .cpp file

Probably a duplicate, but not an easy one to search for... Given a header like: namespace ns1 { class MyClass { void …

c++ coding-style namespaces
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
How to customize / style a UIPopoverController

I'm working on an iPad application and I'm using UIPopoverControllers. I'm at the part where the app needs to be …

coding-style ipad uipopovercontroller customization