Live data from Hacker News

Show HN: Parse and output TODOs and FIXMEs from comments in your files

github.com

1–10 of 44 posts

Re: Show HN: Parse and output TODOs and FIXMEs from comments in your files

#2
Many IDEs have built in support for this and I find it very useful. Good that it is coming to the command line too!

It works great as a code review tool, too. Agree on a marker, add review comments to code, commit to source control and tell your team mate about it. It's just about at-your-fingertips as diffs-with-comments tools (like github PRs), and way lighter on the tooling. You also see all the context, not just the changed lines. Eg:

    // REVIEW(me): This is getting big, maybe split into two classes?
In smaller teams (say, <5 people on a single shared codebase) I've found this to work remarkably well.

Re: Show HN: Parse and output TODOs and FIXMEs from comments in your files

#9
A lot of comments here comparing it with grep or some other native CLI. I think this fares better at least on three metrics:

1. Fun to build. 2. Output looks prettier. 3. Easier to add more syntactic stuff as edge cases for different languages are factored in. Won't be too hard to extend it for github issues, for example.

Since there would be very few cases of partial matches of "TODO" I think grep would still be much faster.

Post reply on HN