Re: [ANNOUNCE] TODO parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Personally, I always spell it 'todo' and then a simple grep works
pretty well...

I suppose I sometimes find a bunch of stuff with 'todo' in a variable
name, but not real often, so far...

I also tend to keep a "todo.txt" file open and add to that instead of
strewing things through my code...

The only "todo" items in code are super super minor and so specific to
that bit of code that I can't come up with a context-free way to
express it in a sentence or less...

Certainly any big-ticket items in a ToDo list deserve to be in an
actual list rather than buried in source somewhere, no?

On Fri, April 27, 2007 8:24 pm, Daevid Vincent wrote:
> For a long time I've wanted a tool that would traverse my source code
> to
> find all those little forgotten "TODO" entries.
>
> It should handle most all kinds (as you'll see if you look at the
> example
> files). The only one I didn't bother with was:
>
> $foo = 1; //Todo: [dv] I meant todo this later.
>
> notice the 'todo' in there. it confuses my script. simple solution is
> just
> spell it out as 'to do', which is proper English anyways!
>
> I give you a fairly simple but useful tool that does just that. The
> output
> can be command line (preferred way) or CSV so you can easily parse it
> into a
> web page. I provided an example of how to do that. The web version of
> course
> could be made much more interesting, with hyperlinks to the files,
> color,
> etc, but I wanted to keep it simple for illustration purposes.
>
> http://daevid.com/examples/todo/
>
> Having said that, you should download it and try it for yourself.
>
> ./todo.php --path ./example --parse_tree
>
> ./todo.php --help for more options
>
> It's all in a single todo.php file so it's easy to add to
> /usr/local/bin or
> whatever.
> The tgz is really only for the examples.
>
> ÐÆ5ÏÐ
>
> P.S. While you're there, I'll give a plug to my DHCP web tool. Perfect
> for
> seeing who's on your LAN.
> http://daevid.com/examples/dhcp/
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux