Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Can your editor do this?

by AgentM (Curate)
on Apr 11, 2001 at 20:37 UTC ( #71733=note: print w/ replies, xml ) Need Help??


in reply to Can your editor do this?

Emacs comes with elisp scripts to do just that as well as similar things. You can arbitrarily collapse function bodies using a simple command sequence. Additionally, if you know elisp (I won't pretend that I do), you can really do anything. For example, if you decided that you wanted to collapse every third recursion of braces, it's a very short elisp script. In your case, I would throw some boundary separators around the block you want to hide. In fact, braces would be fine for this. Additionally, if you find yourself using common code among several programs that you decide that you are not interested in, separate it into a separate library. Even within your program, you should separate your operations into functions for clarity. Except for me, most programmers I know like to have main functions no longer than twenty lines. That should help you clean up.

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.


Comment on Re: Can your editor do this?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://71733]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2014-10-24 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (138 votes), past polls