Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I used to work in a company that programmed entirely in Forth. Yes it was a long time ago. In Forth there were not any types at all. And zero error checking. Forth tended also to be extremely terse. On account of that everybody who wrote Forth code very soon developed their own private dialect...which no other Forth programmer anywhere could easily read.

That situation is doubtless contributory to very few people even having ever heard of Forth today. Yet I do remember a certain liveliness of freedom those lack of restrictions afforded. And I remember enjoying them. Perl's own inbuilt freedoms were a large measure of what lured me to it originally. I shouldn't enjoy to see them trimmed too severely back. That would be saddening, I think.

I did have a rather short affair with Perl Critic. It did not much inspire me to run out and buy the book from which it cites most of its rules. At first I tried to take all its advice. And the results to me looked hideous. Having started out in Forth, I find Perl's flexibility, broad as it is, refeshingly restrained. But I shouldn't want it any tigher. I just do not see the point of having to do "if (bar) {foo}" always in favor of "foo if bar" for no better reason than to prevent C++ folks from being shocked by it.

My current fling is with a new book entitled Higher Order Perl which promotes the idea of functional programming in Perl. The first two chapters alone are worth the price of the book. The section on using dispatch tables has done more to make my code more readable than Perl Critic was able to do, I rather tend to think.


In reply to Re: What is code readability? by aplonis
in thread What is code readability? by brian_d_foy

Title:
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 How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-19 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found