New answers tagged coding-style
0
votes
In C/C++, should I use 'const' in parameters and local variables when possible?
Don’t use “const” whenever you can, but whenever it is relevant.
When you use a variable X then obviously it must have the correct value whenever you use it. Say you use it in line 100 and in line 200....
-3
votes
In C/C++, should I use 'const' in parameters and local variables when possible?
Just like when you're doing network design with routers and switches and hubs. When you first set it up you turn security off. You then get all of your communications working perfectly in a closed, ...
Top 50 recent answers are included
Related Tags
coding-style × 1064coding-standards × 150
java × 106
c++ × 100
code-quality × 95
python × 76
programming-practices × 76
c# × 73
clean-code × 72
design × 55
c × 54
object-oriented × 47
naming × 46
javascript × 45
readability × 39
design-patterns × 27
php × 27
language-agnostic × 24
comments × 22
refactoring × 19
code-reviews × 19
conditions × 19
architecture × 17
exceptions × 17
functions × 17