COIS 1010H Lecture Notes - Lecture 6: Software Development Process, Procedural Programming, Spaghetti Code
Document Summary
A long time ago, programs were written as one large set of instructions that sent control to different parts of the program as needed to perform actions in the proper order: results in spaghetti code. Used to be tedious and required a lot of labour. Procedural programming: easier to find errors and bugs, more organize, easier to change the code, collaboration. Just have to write something once instead of multiple times. Variables: named memory locations that are defined for a program: used to store the current value of data items used in the program. Object-oriented programming (oop): programs consist of a collection of objects that contain data and methods to be used with that data: most popular programming style on the market. Class: a template which define a collection of data and actions on that data. Attributes: data about the data of an object.