3 ms·
I once came to a complicated, multi threaded C++ program and saw: using namespace std; // using namespace standard
by dllthomas 2y ago
I once came to a complicated, multi threaded C++ program and saw:
using namespace std; // using namespace standard
- f1shy 2y agoI'm working RIGHT NOW in a codebase where before each function definition there is a comment "// Function"
- bccdee 2y agoI wonder if that's intended for a specific workflow, e.g. ctrl-f "Function" enter-enter-enter-enter to cycle through all the functions in the file. That's the only reason I can think of for writing those comments.
- f1shy 2y agoWith a half decent IDE you do not need it. It is inexcusable.
- bccdee 2y agoOh I agree, but the person who put them there must have had some sort of reason, even if it's a bad one.
- dllthomas 2y ago> With a half decent IDE you do not need it. I agree. > It is inexcusable. I think it can be quite easily excused on grounds of triviality, though whether that's appropriate may depend on context.