Skip to main content

New answers tagged

3 votes

How can I keep current with Python coding style?

It's 2025 now, most of this can be solved with tooling. While Martijn Pieters' answer will always hold true, an easy way to enforce modern coding style are linters and formatters. Popular examples are ...
Mo_'s user avatar
  • 133
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....
gnasher729's user avatar
  • 49.5k

Top 50 recent answers are included