Lecture 1 - Introduction To Programming PDF
Lecture 1 - Introduction To Programming PDF
• First, there are patterns to our every day lives. The universe operates in a
somewhat predictable way; For example—day and night, seasons, sunrise
and sunset. People go through routines such as rising in the morning, going
to school or to work. We get instructions from other people such as our
superiors at work. How we cook certain recipes can be explained in finite
steps.
• Second, every time we use smart devices, some code is running in the
background. Moving a mouse pointer from one part of your computer
screen to the other may seem like a simple task, but in reality, so many
lines of code just ran. An act as simple as typing letters into Google Docs
leads to lines of code being executed in the background. It’s all code
everywhere.
• Computer programs are also referred to as code. Do not use the word
‘codes’ (code should be used as an uncountable noun). Okay, this is not an
English class, let’s get back to business.
• Machines have their natural language like humans do. Computers do not
understand the human language. The natural language of computers is the
binary code—1 and 0. These represent two states: on (1) and off (0).
• They could be high level or low level languages. High level programming
languages are farther away from the machine language than low level
languages. This “farther away” is usually called an abstraction , but we will
not go into that in this series. Let’s not get distracted :)
• Interpreters - processes the source code line by line and runs every line in the final program or app
• Compilers - Compilers translate all lines of a program to a file (binary) and execute the whole file
• A hybrid of Interpreters and Compilers - is a combination of the Interpreter and Compiler
• Assemblers - translating low-level Assembly language to binary