Top "Coding-style" questions

**DO NOT USE!

What open source C++ static analysis tools are available?

Java has some very good open source static analysis tools such as FindBugs, Checkstyle and PMD. Those tools are easy …

c++ coding-style static-analysis
Setting variable to NULL after free

In my company there is a coding rule that says, after freeing any memory, reset the variable to NULL. For …

c coding-style malloc free heap-memory
String output: format or concat in C#?

Let's say that you want to output or concat strings. Which of the following styles do you prefer? var p = …

c# string coding-style string.format
How do you edit files over SSH?

I program with eclipse and sometimes use GUI text editors like SciTE or vim. However, I'm at a point in …

coding-style editor ssh terminal
PHP IF statement for Boolean values: $var === true vs $var

I know this question is not really important.. however I've been wondering: Which of the following IF statements is the …

php coding-style paradigms
Pylint invalid constant name

I'm receiving a Pylint error regarding my constant: MIN_SOIL_PARTICLE_DENS (invalid name). Any ideas why this constant is …

python coding-style pylint
When is JavaScript's eval() not evil?

I'm writing some JavaScript code to parse user-entered functions (for spreadsheet-like functionality). Having parsed the formula I could convert it …

javascript coding-style eval
Should 'if' statement always have an 'else' clause?

This may be a religious argument, but it has been debated ad-nauseum here at my work whether all IF statements …

coding-style
Acronyms in CamelCase

I have a doubt about CamelCase. Suppose you have this acronym: Unesco = United Nations Educational, Scientific and Cultural Organization. You …

coding-style camelcasing acronym
Why do most fields (class members) in Android tutorial start with `m`?

I know about camel case rules, but I'm confused with this m rule. What does it stand for? I'm a …

android coding-style