4 ms·
If you don't like to see the comments hide them in your IDE. Most decent IDES let you set the background and foreground colours based on the code. i.e. I have
by LandR 6y ago
If you don't like to see the comments hide them in your IDE. Most decent IDES let you set the background and foreground colours based on the code.
i.e. I have comments for type /* */ and // set to be grey on a slighgly darker grey so they are pretty much hidden (as they are useless most of the time).
- goto11 6y agoIMHO this is the worst of both worlds. Comments very easily get out of sync with the code then. I prefer the comments to stand out more than the code. Also helps eliminating useless filler comments since they are so noticeable. If you have comments, they should be important and helpful.
- kelnos 6y agoI don't think this really makes much sense. In my experience people who heavily comment their code don't put much effort into making the code itself all that readable. People who eschew comments are more likely to focus on writing self-documenting code. (Yes, there are people in both camps that go the other way, but I find those less common.) Hiding the comments will just make the difficult-to-read code harder to understand, and will make it more likely that changes to the code will ignore the comments, and they'll become out of date.