Top "Coding-style" questions

**DO NOT USE!

Private vs Protected - Visibility Good-Practice Concern

I've been searching and I know the theoretic difference. public - Any class/function may access the method/property. protected …

oop language-agnostic coding-style
Why use prefixes on member variables in C++ classes

A lot of C++ code uses syntactical conventions for marking up member variables. Common examples include m_memberName for public …

c++ coding-style naming-conventions
Cannot find reference 'xxx' in __init__.py - Python / Pycharm

I have a project in Pycharm organized as follows: -- Sources |--__init__.py |--Calculators |--__init__.py |--Filters.py |…

python reference coding-style pycharm
How do you test your Request.QueryString[] variables?

I frequently make use of Request.QueryString[] variables. In my Page_load I often do things like: int id = -1; …

c# coding-style tryparse isnumeric request.querystring
Should methods in a Java interface be declared with or without a public access modifier?

Should methods in a Java interface be declared with or without the public access modifier? Technically it doesn't matter, of …

java interface coding-style public-method
Should I use `import os.path` or `import os`?

According to the official documentation, os.path is a module. Thus, what is the preferred way of importing it? # Should …

python coding-style python-import
Naming Conventions: What to name a boolean variable?

I need a good variable name for a boolean value that returns false when an object is the last in …

coding-style naming-conventions
Is calling destructor manually always a sign of bad design?

I was thinking: they say if you're calling destructor manually - you're doing something wrong. But is it always the …

c++ coding-style destructor
Function names in C++: Capitalize or not?

What's the convention for naming functions in C++? I come from the Java environment so I usually name something like: …

c++ function coding-style naming-conventions