Introduction to Programming I - CM1005

Introduction to Programming I - CM1005

This module focuses on basic programming techniques. You'll learn how to use the fundamental elements of computer programming such as variables, conditionals, functions and loops. You'll learn how to create interactive, graphical computer programs. You will also be introduced to basic object-oriented programming techniques.


Topics covered will be:

  • Your development environment

  • Drawing in 2D

  • Variables, Objects and Interaction

  • Conditionals and variable types

  • For loops and arrays

  • Advanced arrays and iteration

  • User defined functions and scope

  • Data structures and searches

  • Extending Objects

  • The Factory Design pattern

  • Constructor functions


*** Resources***

** Essential reading**

"There is no required textbook for this module. The module draws on number of different, largely web-based, public resources as well as the resources produced as bespoke material for this module. The programming language is Javascript, with the p5js library used for graphical and interactive programming functionality. The main external resource is the set of online tutorials available from: p5js.org/learn."


Pedram Badakhchani Useful links:

My p5 sketches:

https://editor.p5js.org/pedbad/collections

My codepen:

https://codepen.io/pedbad

https://eloquentjavascript.net/