Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

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

Rather than reply to each node and basically say the same thing, I'll just do it here.

The point of the first section is to pay attention to those who have more experience programming with Perl and try not to follow in the footsteps of those whose will never learn Perl no matter how long they use it. Judge a programmer by the work they produce not their resume. That new "kid" may already be a wizard. The senior programmer that acts as your supervisor may or may not have earned the position. If you find a wizard, pick up some pointers along the way. The eternal Perl user keeps making the same mistakes. If you learn from your (or their) mistakes the first time, you can move on to new mistakes and a new understanding.

The way that hash slices were treated seemed to confuse more than help. I was just using them as a continuing theme that started with this comment "That said, code that is destined to be released into production is not the place to practice your new found knowledge of hash slices." Perhaps I should have stressed the "new found knowledge" a bit more. I'm not saying that @hash{@array} = (1) x @array; should not be used for this sort of thing. What I am trying to say is if you don't know something every well, fall back on the idioms that you do know. It may have been a bit clearer if I had moved "Double (or even triple) check your data" right after that section since it picks up the hash slice theme by using the misremembered @hash{@array} = (1 x @array); (which just creates a string of ones as the value for the key created by the first element of the array).

The links. It looks like that idea didn't work out either otherwise you wouldn't have mentioned them. If you read the last section "Use every available resource" (you didn't read it because you were distracted by all the links, right?), you'll find "There is a wealth of information that is only a few clicks and keystrokes away." Based on the feedback, I really did go overboard with them and I apologize.

Update: Split the last sentence of the first paragraph into two sentences to clarify the meaning.


In reply to Re: Learning perlisms leads to experience, wisdom and discoveries that whitespace & idioms are lazy by Mr. Muskrat
in thread Learning perlisms leads to experience, wisdom and discoveries that whitespace & idioms are lazy by Mr. Muskrat

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 lurking in the Monastery: (3)
As of 2024-04-25 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found