COMPSCI 1JC3 Lecture Notes - Lecture 2: Firstclass, Programming Paradigm, Machine Code
Document Summary
Hardware - enables massive amounts of data to be stored and manipulated with great speed and accuracy. Software - provides the means to control the behaviour of the hardware with power and flexibility. Programming language - formal language for writing programs. Imperative statement - expresses an action to be perform ( an instruction) Imperative program - a sequence of imperative statements that expresses how the program will work, how the data will be manipulated. Declarative program - sequence of declarative statements that explains what the program will achieve. Programming paradigm - well developed style of programming ( a style) Each programming language can support many styles of programming. Many languages are multi-paradigm (e. g python can support paradigms 1-3) Two main ways to execute and store information. Interpretation - the program is fed into a interpreter, who goes line by line and executes it. (e. g ghci is an interpreter) Advantage : interactive development and debugging of code.