News for hackers. Stuff that matters.
Re:Show HN: Parse and output TODOs and FIXMEs from comments ... by pgilad on Monday May 25, 2015 @11:19AM (#9600365)
Yep, truly avoiding false positives and capturing all todos you would need to really parse the source code (perhaps creating an AST or lexical parsing).

Even if you build that tool (which handles many languages) - it has an extra headache cost with the parsing time, which might be really slow for large projects.

I actually started Leasot with Javascript AST checking which never misses TODOS but is very hard to extend to other languages, as well as parsing speed was a magnitude slower.

Re:Show HN: Parse and output TODOs and FIXMEs from comments ... by laumars on Monday May 25, 2015 @11:24AM (#9600382)
Just out of interest, how often do you find yourself using "TODO" as a variable name or elsewhere in your code?

This isn't a dig, it's just something I've genuinely never stumbled across in 2 decades of programming so wondered if there's a culture out there I've missed.

Re:Show HN: Parse and output TODOs and FIXMEs from comments ... by pgilad on Monday May 25, 2015 @11:34AM (#9600413)
Probably never. False positives is just a nice catch-phrase ;) But I don't presume to know other people's naming patterns