Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??


Before I give mine I had a couple of minor issues.. (heh you knew that was coming didnt you?)

  • For the indenting im using It(=4c<!>) to mean that I use tabs, but have them set to be displayed as four spaces and that my editor automatically converts leading spaces to such tabs and it automatically truncates trailing spaces. Sorry if I didnt follow the code, hopefully you havent finished your parser for this yet ;-)
  • For parens im using -0.5 because I use the minimum number of parens that keeps my codes meaning clear, but I dont try to explicitly avoid them.
  • For references I used R1.5 because I often call vars "array_ref" or the like, but I dont put "ref" in anything like all variables references.
  • Im using d0 for the dummy name question, assuming that "a" and "b" also includes safer var names like "i","j","x","y"
  • I added the keyword "tidy" to your end block, because I rotuinely run my code through perltidy.
It(=4c<!>)Os1;0S,>.+**<=><&&><and><gt>++<==>B1L1 C2P-0.5N>eR2Vc1a1p(s0h0a0)r1.5d0Hsw1sub-main-tidy
more compliant with the updated spec. I stand by the tidy bit though.
It=4! Os1 ;0 S,>.+**<=><&&><and><gt>++<==> B1 L1 C2 P-.5 N>e R2 Vl(en)c1a1p(s0h0a0)r1d.5 Hsw1 sub-main-tidy

BTW, two thoughts regarding perltidy, the first is that you might have a look there for even more options for a later version of the perl geek style code, and on the other hand wouldnt it be cool if you could feed this style blcok into perltidy and have it behave accordingly? Now theres a nifty little hack that you could do that would put your style code a touch above some of the other codes (at least in terms of practicality.)

Cheers Juerd, good post!

Yves / DeMerphq
Writing a good benchmark isnt as easy as it might look.

In reply to Re: Style geekcode by demerphq
in thread Style geekcode by Juerd

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-12-01 04:26 GMT
Find Nodes?
    Voting Booth?

    No recent polls found