comment stripper

Started by
1 comment, last by rip-off 13 years, 1 month ago
Has anyone considered making a comment stripper? This would take all comments and strip them out of a code file. This would be useful for me since a lot of times my comments are just code that didn't work out or test code.







Advertisement
I think some people have thought about this:

http://stackoverflow.com/questions/241327/python-snippet-to-remove-c-and-c-comments

C++: A Dialog | C++0x Features: Part1 (lambdas, auto, static_assert) , Part 2 (rvalue references) , Part 3 (decltype) | Write Games | Fix Your Timestep!

Are you using version control? Once you have a complete backup of your projects history, you'll find that keeping dead code around simply isn't necessary anymore. If you are using distrbuted version control, you should be creating local branches for "test code". With centralised systems its a bit trickier, not every test justifies the complexity of a server side branch.

This topic is closed to new replies.

Advertisement