03.Aug.2005
So we put these little FIXME notes all among the source code as a cheap excuse for our laziness. Have you ever thought what happens to the old, all-abbandoned FIXME’s? Here is the answer.
I hacked a simple fixme2html bash script that converts all the project FIXME’s into a nice, DOM-oriented HTML file like this. Try clicking the fixme blocks to expand the coresponding source code. It should work in IE as well.
Since FIXMEs are actually personal notes, they provide an excellent material for analyzing the emotional profile of the given suspect. My plan now is to write a simple parser to scan FIXMEs and generate Freudian diagnosis reports for the source-file author. That involves some dictionary parsing, but overally it looks like a simple task (FIXME: Why am I so vulgar in my fixmes?)
You can customize the script to your needs, take a look at the header.
Update: New version available here.
Powered by Mephisto with a micro theme mod
6 Comments
Interesting. Here’s a question for your Freudian diagnosis report: What if I prefer a “TODO” marker over the “FIXME” marker?
Also, the .sh is a cute tool, but its nicest when your IDE can do it for you.
Hi.. Diva looks a coooool project :) the UI looks awesome and professional.. cant wait to use it :P
BTW The “Get GNOME!” link on your front page is not correct.. you have put a comma in place of a dot :)
>Here’s a question for your Freudian diagnosis report: What if I >prefer a “TODO” marker over the “FIXME” marker?
Well… it seems you’re overestimating the future because you feel sexually harrassed by the present ;)
But seriously, I suppose this feature can easily added. On the other hand - it would be nice to have the script done in PHP or something, working dynamically on SVN repositories etc. I suppose it might be usefull for multi-developer projects.
I wrote it for fun mostly. Since the Google SoC I got somewhat interested in all the DOM/HTML/Script./DHTML possibilities. If you do it “the-right-way” (like Google - clean & simple) it can be used to built some really cool web applications (think - GMail).
BTW, I’m not using IDE, just gVim. Not that I’m a vim-freak or something. I just don’t like the syntax highlighting & whitespace handling in all the IDE’s I tried.
If you’re going to get into XMLHTTP/AJAX stuff, you might want to take a look at an article I just had published at DevX.com for dealing with the XML responses. Please pardon the blatant pimpage, but I do think the ideas for response handling are novel and useful: http://www.devx.com/webdev/Article/28695
The JavaScript used to expand and collapse the code doesn’t work in Opera. Generally, doing browser sniffing based on the user agent string is a very bad idea. Instead, don’t care about the browser in use, but the objects and functions implemented.
So instead of cluttering your code with ‘if (isNAV6)’ you can just check if the function you’re wishing to use, like ‘document.styleSheets’ exists, like this: ‘if (document.styleSheets) {}’. Much simpler, eh? And it works. In all browsers in existence.
Oh, very nice tool btw. ;-)
Sorry, comments are closed for this article.