Maintenance wise, is `else while` without intervening braces considered safe?
Is else while
without intervening braces considered “safe” maintenance wise?
Java style classes in c++
I came across this article proposing a style of coding in c++ that looks a bit weird at first. But after reading it over and pondering for a bit I’m really considering giving it a try.
Are there published guidelines, standards, or references that propose more than 80 chars per line?
Despite increases in screen size and resolution, many sources still suggest that code be limited to 80 characters per line. I realize than there are many different opinions on this subject, but I wonder whether there are any standards bodies or influential firms that use other limits (120 characters is a common alternative). For example, are any standards bodies considering “enlarging” the suggested limit? Are there large scale software projects (e.g. at NASA or ESA) that use larger limits?
How can I avoid mistakes using the same variable name again?
This isn’t a rare case and occurs with me often and I spent countless time trying to debug the code.
call sub function based on variable value
I have a function containing other functions. These function are called based on value of variable action
.
Preventing override of methods in Objective-C [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. Objective-C lacks private methods or java-esque final methods. […]
Temporary variables vs line length requirements
I’ve been reading Martin Fowler’s Refactoring. It is generally excellent but one of Fowler’s recommendations seems to be causing a little trouble.
I hate one of our coding standards and it drives me insane, how to process it? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Should I spend time prettifying unit tests? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Is it a good idea to provide different function signatures that do the same thing?
Here is a C++ class that gets constructed with three values.