Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

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

Why didn't I think of this before. Well, yes, Perl has a *perfect* place to fit into a pure academic education. Finite Automata.

Why? It's 95% about grammars and parsing. I took a whole class that dwelt in the mathematics of it all, and we *mentioned* lexx and yacc and sed and awk, but did not get into gory details since they were rather...well..gory and different. Perl unites these. At the time, I new Perl, but was not aware of cool things like Parse::RecDescent and Parse::YAPP

I think Perl (combined with grading programs using Test::More or equivalent, could be used to provide some programming context to what is, in general, a rather rigorous (and potentially arcane) mathematics course.

One could start with simple regexes to mention Kleene Star, and then write more complex grammers using the various Parse:: modules and so on.

In fact, I think Perl is probably the best language to use in such a course, provided one is told how to do it cleanly. Finite Automata is usually a 3rd year course, so it would not be the first language for a student, and they would already have the discipline required to wield Perl like the mighty blade it is.

I'm not quite sure if it's applicable in terms of State machines, turnig machines, and so on...but for the grammar portion, it would be perfect. If a short (say 10 pages) of sample Perl were provided as a reference jump start. Make the Camel and/or Llama optional books for those that really want to understand the language, but for simple parsing, diving too deep might not be required.


In reply to Re: Teaching Perl inside an Academic Course by flyingmoose
in thread Teaching Perl inside an Academic Course by Mago

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: (5)
As of 2024-04-24 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found