Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Variables, control structures, and functions, definitely. Operators is another big one. In particular, I think a lot of non-programmers have trouble internalizing the distinction between assignment and comparison operators. Going over logical operators also gives people a good chance to connect with programming on an intuitive level (everyone understands what "and" and "or" and "not" mean).

But since it's JavaScript, there are a couple of things you'll probably need to touch on that wouldn't necessarily be part of the "first six hours" if you were teaching a different language.

For instance*, objects. Obviously you don't want to delve too deeply into object-oriented programming theory, but it's hard to accomplish much in JavaScript without a basic understanding that elements on a page (and the page itself) are treated as "objects" and to find out their characteristics you refer to their "properties" and to make them do things you use "methods."

Also, the concept of events and event handlers is pretty fundamental.

Those are all very handy things to know about, of course, but it does give you quite a bit more to cover. Still, I think if you don't cover that stuff, they'll come away from the class still baffled by even the most basic cut-and-paste JavaScript code they'll come across.

--Kevin

Update: * Pun unintentional, but I like it.


In reply to Re: Fundamentals Of Programming -- In 6 Hours by kshay
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 musing on the Monastery: (5)
    As of 2014-08-30 10:46 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (292 votes), past polls