Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Fundamentals Of Programming -- In 6 Hours

by kshay (Beadle)
on Nov 08, 2002 at 03:13 UTC ( #211321=note: print w/replies, xml ) Need Help??

in reply to Fundamentals Of Programming -- In 6 Hours

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.


Update: * Pun unintentional, but I like it.

  • Comment on Re: Fundamentals Of Programming -- In 6 Hours

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-10-03 21:03 GMT
Find Nodes?
    Voting Booth?

    No recent polls found