Re:Auto-expiring TODO notes in Ruby
by TazeTSchnitzel on Saturday May 17, 2014 @08:41AM
(#7759967)
Why a function? I hoped it would just parse comments.
[ Parent
| on HN ]
Re:Auto-expiring TODO notes in Ruby
by michaelmior on Saturday May 17, 2014 @09:02AM
(#7760005)
Likewise. I think I'd rather have this as part of the build process. This would also make it easier to have a tool which works across languages.
I think that's a good idea. Perhaps based on a standard format such as '# TODO 2014-01-01 Fix me' ?
Why put the date in the comment itself? Just ask source control when the line was introduced, and set a max age.
Interesting idea, but I'm not sure if that would be possible for all cases, for example what happens if the part of the line before the comment changed?