Skip to content

Definitions in programming (concepts)

Terms about code execution

  • Compiler: A compiler is a program that translates your code into a language your computer can read. All programming languages end up as binary code.

  • Interpreter: Also a program that translates your code into a machine readable form. The difference to the compiler is that pieces of code get translated as needed.

Terms about how to program

A programming paradigm is the way you write code. The following terms are different ways to write code. Be aware that not every programming language supports every way of writing code.

Introduction to the programming world
    OOP(Object Oriented Programming) To be filled...

General programming terms

Methods

A method is a function that always resides in a class.

Functions

A function is a reusable block of code that you can call either to get returns or to modify something.

Where to find them

In Java for example you'll only find methods as there can't be a function outside of a class.

Whereas in Python you can find both methods and functions as Python allows functions outside of classes as well as supports different programming paradigms (OOP, Dynamic, Procedural)