Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: What makes a comment "obnoxious"?

by chargrill (Parson)
on Sep 09, 2007 at 19:14 UTC ( #637927=note: print w/replies, xml ) Need Help??

in reply to Re: What makes a comment "obnoxious"?
in thread What makes a comment "obnoxious"?

If I were to find a good 'tree collapsing' editor for Perl

Do you mean to tell me that there are editors that do not have this feature?

Even little vim has code folding, as soon as you discover how to best use it: install the perl-support plugin, and in it's documentation:

Syntax based folding can be enabled by adding the following lines to t +he file '~/.vim/syntax/perl.vim': let perl_fold=1 let perl_fold_blocks=1

But back on topic, if you think the module author's idea of "obnoxious comments" is ridiculous (and you of course like everything else in Perl::Critic) - simply disable that policy in your .perlcriticrc file.

s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Replies are listed 'Best First'.
Re^3: What makes a comment "obnoxious"?
by snowhare (Friar) on Sep 10, 2007 at 11:12 UTC
    Do you mean to tell me that there are editors that do not have this feature?

    Some of us have been doing this long enough that 'new fangled tools' can be hard to keep up with. I "just looked" for a decent code collapsing editor "a few years ago". ;) At the time, I was disappointed with that new IDE, Eclipse. It was hard to install, was Java-centric, didn't have decent Perl support, and was too much trouble for small scripts. ;) (1)

    I just gave the folding option for vim a try. I'll pass on that particular implementation of folding: It doesn't qualify as 'good' (or at least I couldn't figure out how to collapse/uncollapse stuff any other way than changing the 'foldlevel'). The other features in the Perl-Support plugin look very interesting.

    Looking at SciTe and Geany (neither of which I had seen before today) I am initially impressed with their implementations of folding. Geany looks nice in general. My desktop work tools may be about to change.

    Live and learn.

    * 1 Yes. I know. My point was that it has been a few years since then. See the winking smilelies.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2023-03-24 18:14 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (61 votes). Check out past polls.