So that gave me an idea. It sure would be nice if, once I figure out what a particular chunk of code does, I could somehow hide it from view, replaced by a one-line comment on what its function is. Then I could collapse the code one piece at a time, and when I'm all done, I'll have nothing but a big page of pseudocode explaining the whole process. Even better, if I could take those collapsed bits of pseudocode and collapse them together into a higher level of abstraction, and so on. In effect, I'd be generating the kind of comments that should have been placed there by the original programmer to begin with.
So I'm wondering. Does anything out there already do this? I can't see how it'd be useful for coding from scratch, but it'd be invaluable for making sense of legacy code, especially in big projects. Anybody know of such a beast?
---
I'm too sexy for my .sig.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can your editor do this?
by AgentM (Curate) on Apr 11, 2001 at 20:37 UTC | |
Re: Can your editor do this?
by stefan k (Curate) on Apr 11, 2001 at 21:02 UTC | |
Re: Can your editor do this?
by infoninja (Friar) on Apr 11, 2001 at 20:23 UTC | |
by fpi (Monk) on Apr 12, 2001 at 09:29 UTC | |
by Sprad (Hermit) on Apr 12, 2001 at 19:53 UTC | |
Re: Can your editor do this?
by rchiav (Deacon) on Apr 11, 2001 at 21:39 UTC | |
Re: Can your editor do this?
by Desdinova (Friar) on Apr 11, 2001 at 21:39 UTC | |
Re: Can your editor do this?
by voyager (Friar) on Apr 11, 2001 at 20:39 UTC |