1 Hour

2. Types of Programming Languages

Module 02: Types of Languages

Choosing your weapon

A programming language is a formal system of notation — a set of rules for writing instructions that a computer can process. Just like human languages (English, Yoruba, French) have grammar and vocabulary, programming languages have syntax and keywords.

There are hundreds of programming languages. You don't need to learn them all. You need to understand the landscape well enough to pick the right tool — and then go deep on one.

Low-Level vs High-Level Languages

Low-level languages are close to the hardware. They give you precise control over memory and CPU operations. High-level languages abstract away those details so you can focus on solving problems, not managing wires.

Text
; Assembly (Low-Level) — add two numbers
MOV AX, 5
MOV BX, 3
ADD AX, BX

# Python (High-Level) — same thing
result = 5 + 3

Which one would you rather write every day? High-level languages trade raw performance for speed of development and human readability — a tradeoff that's almost always worth it.

Compiled vs Interpreted Languages

Execution Pipelines: Compiled vs Interpreted Languages COMPILED PIPELINE (C++, Rust, Go): Source Code main.cpp / main.go Compiler (Ahead) Translates whole app Machine Binary app.exe / ELF binary CPU Run Zero Lag INTERPRETED PIPELINE (Python, JavaScript, Ruby): Source Code script.py / app.js Interpreter Engine (PVM / V8) Reads & executes line by line CPU Run Dynamic

Compiled languages (like C, C++, Rust) are translated entirely into machine code before the program runs. The result is a standalone executable file that runs very fast.

Interpreted languages (like Python, JavaScript) are translated line by line as the program runs, by a program called an interpreter. This is slightly slower but makes development faster and easier.

Analogy

Compiling is like translating an entire novel before publishing it. Interpreting is like having a live translator at a speech — sentence by sentence.

Programming Paradigms

A paradigm is a style of programming — a way of thinking about and structuring code.

  • Procedural Programming: Code is written as a sequence of procedures (steps). Think of it as a recipe — do this, then do this, then do that. This is where most people start.
  • Object-Oriented Programming (OOP): Code is organized around objects — bundles of data and behavior. A User object might have a name, email, and methods like login() and logout(). OOP makes large codebases manageable.
  • Functional Programming: Code is written as a set of mathematical-style functions that transform data without changing external state. Languages like Haskell and features in Python, JavaScript, and Scala support this style.

Domain-Based Languages

Different fields favor different languages based on their strengths:

  • Web (Frontend): JavaScript — runs in the browser, powers every interactive website.
  • Web (Backend): Node.js, Python, Ruby, Go.
  • Data Science & AI: Python — the undisputed king, with libraries like NumPy, Pandas, TensorFlow.
  • Systems & Performance: C, C++, Rust — when speed and control are critical.
  • Mobile (Android): Kotlin — modern, expressive, officially supported by Google.
  • Mobile (iOS): Swift — Apple's own language, fast and readable.
  • Enterprise: Java, C# — battle-tested in large organizations.

Choosing Your First Language

Recommended Choice

Start with Python. It has the cleanest syntax, the largest community for beginners, and the widest range of applications — from web to AI to automation. Once you know Python, picking up any other language becomes dramatically easier.

If you know you want to build websites immediately, JavaScript is also an excellent first language. Both are valid. Pick one and commit — the worst choice is no choice.

Your First Code in Python

Let's write something slightly more interesting than Hello World:

Python 3
name = input('What is your name? ')
print('Hello, ' + name + '! Welcome to programming.')

This program takes input from the user and gives a personalized response. You just used variables, string concatenation, and I/O — three real programming concepts — in two lines of code.

Knowledge Check

Ready to test your understanding of 2. Types of Programming Languages?

Back