4 ms·
So that it's grep-able?
by berkut 7y ago
So that it's grep-able?
- catalogia 7y agoIt's also nice to highlight TODO and FIXME in your text editor for added emphasis. I believe Vim even does this by default.
- nkozyra 7y agoI think this is the primary benefit. Only so many times can you scroll past a nagging ide hint before you say "FINE, I guess I'll do it now!"
- sedatk 7y agoWhy would you grep in a scenario where a note is written because "[the]... code is functional, but if you are going to do another iteration you may want to consider the following improvement or optimization.". It's exactly meant for when you encounter it, it's not meant to be found externally.
- TeMPOraL 7y agoBecause it's trivial to add special highlighting to such notes in most editors and IDEs. Hell, a lot of them come with a configurable list of these comment keywords already built in.
- alpaca128 7y agoWhy would you intentionally leave out a TODO tag to make it harder to find? Lowering the barrier to see such comments increases the chances of people actually handling them. Having a highlighted TODO in the code makes it much more visible even if you don't use grep.