Auto-expiring TODO notes in Ruby
github.com
Auto-expiring TODO notes in Ruby
1–10 of 42 posts
Re: Auto-expiring TODO notes in Ruby
#2Re: Auto-expiring TODO notes in Ruby
#3Another idea would be to automatically create a task/bug/issue for every TODO created (which closes when the TODO is removed)
Re: Auto-expiring TODO notes in Ruby
#4Re: Auto-expiring TODO notes in Ruby
#5As much as 'turning off asserts' is the classical style, that's more to do with the design of older instrumentation than the sanity of it.
Re: Auto-expiring TODO notes in Ruby
#6Re: Auto-expiring TODO notes in Ruby
#7Re: Auto-expiring TODO notes in Ruby
#8Some years ago I had the same idea and realized something like that with the C-Preprocessor in a C++-Codebase.
When did my Todo's expire? AFTER testing, just before a new release. With my idea of exipiring Todos I created a major pain in the butt for the team.
It would be different if some other "sort of" alarm would be raised when TODOs proliferate, but a failure in the code is not a good solution. (i.e. hook a todo checker into your contious build system, let the nightly build raise hell when there are too many todos - but do not fail the production code.)
Re: Auto-expiring TODO notes in Ruby
#9Why a function? I hoped it would just parse comments.
Re: Auto-expiring TODO notes in Ruby
#10Any compiled language would fit this much better - fail at compile time. Or in interpreted-o-world, at least do it at test time.
I guess it's just lovely when deployed, working, test-passing software suddenly starts failing on a server (all servers at once, globally), because someone added a TODO a few weeks ago.