Programming
Fundamental
s
V.VIDYASHANKAR
2 N D JULY 2025
Programming – The What
The act of writing instructions that make a computer do something useful
It is a creative activity that involves art, engineering and science
Good programs are written to be executed efficiently by computer’s but also be read
and understood by humans
The best programs are delightful in ways similar to the best architecture, elegant in
both form and function
Programming – The How
Just as humans communicate with each other using natural language, humans
interact with computers using languages
Ideas are first expressed in pseudo code and then converted into actual programs
using programming languages ( Python, JavaScript, C++, Java etc )
Computers only understand binary ( the language of 0’s and 1’s ) so the code one
writes is translated ( or compiled / interpreted ) into machine language
Once translated, computers follow the instructions exactly as given, step by step
The computer, then, produces, the desired results like displaying a message,
calculating something or changing something in a webpage
Programming – The Why
It teaches logical thinking and problem solving
One can build mobile apps, make computer games, websites or even control robots
Computational thinking is generally perceived as a useful trait to have – aids in art,
science, business and in daily life
Example
Finding the maximum of two numbers
Human Thought Process – If the first number is greater than the second number,
then the maximum is the first number. Otherwise, the maximum is the second
number.
Finding the average of n numbers
Human Thought Process – Get the sum of the given set of numbers and divide it by
the size of the set.
Characteristics
Simplicity
Unambiguous
Readability
Precision
Portability
Efficiency
Modularity
Error Handling
Support for Algorithms
Compilers and Interpreters
A Compiler translates the entire program into machine code before it runs
It creates a separate executable file
Runs faster after compilation
Errors are shown after compiling ( Example – C/C++,Java )
An interpreter translates the program line by line as it is running
No separate file is created
Slower than compiled programs
Errors are shown immediately ( Example – Python, JavaScript, Ruby )