Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Comment on

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

Following in my tradition of "carrot & stick" teaching method, I'd try for something along these lines (assuming 6 1 hour sessions):

  1. Start by showing them a js dropdown menu with nice borders and their names on them, that pops up an Alert box saying "XXXXX sucks at programming".:)

    Supply each of them with a copy of the code, which should be as badly structured as possible. Monolithic, everything hard coded etc. The sort of stuff that your average beginner turns out.

    Then let them spend half an hour trying to modify their copy so that when they click their own name, it pops up and says something really cool.

    Then ask them to try and integrate all their different versions together for the rest of that period and homework if they want to.

  2. Start the next lesson by showing them your structured version (in action rather than the source), and then ask each of them what they want their name to say, and make the changes to your version. Ie update a data structure somewhere and show them that in action. Shouldn't take more than a few minutes. As they've seen how hard it is to do it themselves they should be impressed by yours.

    You then get to spend the rest of the time explaining the differences between the unstructured and the structured versions. Why each part was changed and the benefits they get from it.

    The rest of the periods cover (for example) the following subjects with half the time spent explaining the basics and half with them trying a practical exercise.

  3. Variables and data structures.
  4. Flow control and functions.
  5. Abstraction and encapsulation (though I'd probably call it "Keeping apples with apples" or similar:)
  6. Putting it all together and if time allows, some simple debugging techniques.

Hmmm. Just a few thoughts.



Nah! You're thinking of Simon Templar, originally played (on UKTV) by Roger Moore and later by Ian Ogilvy

In reply to Re: Fundamentals Of Programming -- In 6 Hours by BrowserUk
in thread Fundamentals Of Programming -- In 6 Hours by Cody Pendant

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others chilling in the Monastery: (13)
    As of 2014-09-19 12:15 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (137 votes), past polls