Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Regex - Delimiter question

by GrandFather (Saint)
on Sep 29, 2006 at 18:46 UTC ( [id://575589]=note: print w/replies, xml ) Need Help??


in reply to Regex - Delimiter question

I like the question and it has been well answered. However is it appropriate to pose "This is how you shouldn't do it" puzzles for beginners?

It is much easier to figure out how to paint an elephant by seeing a good painting of an elephant than by seeing a whole pile of paintings of shadows of different parts of an elephant.

Show your beginners good code and good technique. Keep them in the middle of the stream where the water is smooth and easy to negotiate. Save the rapids for later on when they can handle things a little.

It is more cool to answer questions clearly than it is to try and be an obscure guru. A guru who can answer the most obscure questions in a clear fashion posesses much more fu than one who draws cryptic shadow drawings in the sand.

If you need some help or would like your questions checked out by others, it wouldn't hurt at all to post a meditation as an RFC (request for comment). If it is a good set of questions (and by the time the monks have pored over it, it will be), it may even enter into the tutorial materials as a resource for others to use.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Regex - Delimiter question
by Smaug (Pilgrim) on Sep 30, 2006 at 07:43 UTC
    I agree 100%. Well maybe 99%.

    I'm sure most of of us remember being taught "we can use any delimiters for regex......but don't."
    My first question was always "Why??" and this serves as a great example of why. It serves to show that unless you understand what you are doing you may get unexpected results that you will also not understand.

    So I agree that it's not good to show how not to do it, but it is sometimes helpful to show why you should not be surprised by some of the results you may find when you step outside of the saftey of more "standard" coding techniques.
    My 2 cents worth anyway.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-04-18 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found