Home > IB Computer Science 2015 > First lesson: (re-)Intro to programming

First lesson: (re-)Intro to programming

Concepts covered in Lesson 1. These are particularly important for those who are new to computer programming, or who have forgotten what we learnt last year:

  • Instructions
  • Limited vocabulary (you cannot talk to the computer in plain English… yet)
  • Sequence (you have to get the order of instructions right)
  • Looping (same few lines of code over and over)
  • Stored procedures (naming a set of instructions for later reuse by you, or others)
  • Extending the language (creating a command, e.g. “square”, that didn’t exist before)

A computer program is a sequence of instructions written in a limited vocabulary that when executed carry out a specific task on a computer. Computer programs often do repetitive work, such as processing all items in a list, and so they contain features for re-using instructions so that those instructions don’t have to be written multiple times. Loops achieve this aim, as does the facility to store and name sets of instructions. Stored, named sets of instructions are variously known as procedures, subroutines, functions or methods, depending on the context. In allowing you to create and save your own procedures, programming languages make themselves extensible.

You can download FMSLogo and play with it. Check the help files if you are hungry to learn more.

 

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s