Skip to main content

Learning path · Beginner

Programming fundamentals

The ideas every programming language shares, from variables to classes.

Start from zero: what a program is made of, how to find out why it broke, how code is organized into objects, another way of thinking with functions, and the tools you'll use every day.

39 pages5 chaptersabout 1.5 hours of reading

  • Programming Languages
  • Programming Fundamentals
  • Operating Systems

Not started yet0/39 read

Start with Programming Language

Score 80% or more on the path's quiz to earn its certificate. Take the path quiz

Progress comes from your reading history, kept only in this browser.

Chapter 1The first ideas

  1. 1Programming LanguageProgramming Languages, p. 25A programming language is a formal language with exact rules for writing instructions a computer can carry out, such as Python, JavaScript, Java or C.
  2. 2VariableProgramming Fundamentals, p. 62A variable is a named storage location in a program that holds a value, such as a number or a piece of text, which the code can read and change as it runs.
  3. 3Data TypeProgramming Fundamentals, p. 19A data type is a classification that tells a program what kind of value a piece of data holds, such as a number or text, and which operations work on it.
  4. 4StringProgramming Fundamentals, p. 60A string is a data type that represents text as an ordered sequence of characters, such as a name, a sentence, a URL, or the contents of a file.
  5. 5ArrayProgramming Fundamentals, p. 4An array is an ordered collection of values stored under one name, where each item is accessed by its numeric position, called an index, usually starting at 0.
  6. 6LoopProgramming Fundamentals, p. 40A loop is a control structure that repeats a block of code, either a set number of times, once for each item in a collection, or while a condition stays true.
  7. 7FunctionProgramming Fundamentals, p. 26A function is a named, reusable block of code that performs a specific task, optionally taking inputs called parameters and returning a result.
  8. 8ParameterProgramming Fundamentals, p. 49A parameter is a named input in a function's definition, and an argument is the actual value passed in that place when the function is called.
  9. 9ScopeProgramming Fundamentals, p. 56Scope is the region of a program where a name, such as a variable or function, is visible and can be used, which decides what each line of code can reach.
  10. 10NullProgramming Fundamentals, p. 44Null is a special value that means "no value here", used when a variable deliberately refers to no object or data at all instead of holding something real.

Chapter 2When things go wrong

  1. 11ExceptionProgramming Fundamentals, p. 24An exception is an event that interrupts a program's normal flow when an error occurs, which code can catch and handle instead of letting the program crash.
  2. 12Stack TraceProgramming Fundamentals, p. 58A stack trace is the list of function calls in progress when an error happened, from the line that failed back to where the program started.
  3. 13DebuggingProgramming Fundamentals, p. 20Debugging is the process of finding out why a program misbehaves, locating the faulty code and fixing it, often with the help of a tool called a debugger.

Chapter 3Organizing code

  1. 14ObjectProgramming Fundamentals, p. 45An object is a bundle of related data and behavior: values in named fields, often called properties, and functions that work on them, called methods.
  2. 15ClassProgramming Fundamentals, p. 10A class is a blueprint in object-oriented programming that defines the data and behavior shared by a group of objects, which are created from it as instances.
  3. 16ConstructorProgramming Fundamentals, p. 16A constructor is a special method that runs when a new object is created from a class, setting up its starting values so it is ready to use.
  4. 17MethodProgramming Fundamentals, p. 42A method is a function that belongs to an object or class and is called on it, so it can read and change that object's data, as in user.rename("Ada").
  5. 18OOPProgramming Fundamentals, p. 46OOP, or object-oriented programming, is a way of structuring code around objects that bundle related data together with the functions that act on that data.
  6. 19EncapsulationProgramming Fundamentals, p. 22Encapsulation is the practice of bundling data with the methods that use it and hiding internal details, so outside code works only through a public interface.
  7. 20InheritanceProgramming Fundamentals, p. 33Inheritance is an object-oriented programming feature that lets a new class reuse, extend, and override the fields and methods of an existing class.
  8. 21PolymorphismProgramming Fundamentals, p. 51Polymorphism is the ability of code to work with values of different types through one shared interface, with each type supplying its own behavior.
  9. 22InterfaceProgramming Fundamentals, p. 34An interface is a named set of method and property signatures that a type promises to provide, without saying how those members are implemented.
  10. 23AbstractionProgramming Fundamentals, p. 2Abstraction is hiding the complicated details of how something works behind a simpler interface, so code can use it by knowing only what it does.

Chapter 4Thinking in functions

  1. 24Functional ProgrammingProgramming Fundamentals, p. 27Functional programming is a style of building software from pure functions that avoid changing shared data, making code more predictable and easier to test.
  2. 25Pure FunctionProgramming Fundamentals, p. 53A pure function always returns the same output for the same input and has no side effects, meaning it does not change anything outside itself.
  3. 26ImmutabilityProgramming Fundamentals, p. 32Immutability means a value cannot be changed after it is created, so every update produces a new value instead of modifying the original in place.
  4. 27Higher-Order FunctionProgramming Fundamentals, p. 30A higher-order function is a function that takes another function as an argument, returns a function, or both, so behavior can be passed around like data.
  5. 28Lambda FunctionProgramming Fundamentals, p. 38A lambda function is a small function written inline without a name, usually passed straight to another function such as a sorting or filtering helper.
  6. 29CallbackProgramming Fundamentals, p. 8A callback is a function passed as an argument to another function, which then calls it later, for example when a task finishes or an event happens.
  7. 30ClosureProgramming Fundamentals, p. 11A closure is a function that remembers the variables from the scope where it was created, so it can keep using them even after the outer function has returned.
  8. 31RecursionProgramming Fundamentals, p. 54Recursion is a technique in which a function solves a problem by calling itself on smaller versions of the same problem until it reaches a simple base case.

Chapter 5Tools of the trade

  1. 32IDEProgramming Fundamentals, p. 31An IDE (integrated development environment) is an application that combines a code editor, a debugger, build commands and other developer tools in one place.
  2. 33TerminalOperating Systems, p. 32A terminal is the program that shows a text interface, passing your keystrokes to a shell or command-line program and displaying the text it sends back.
  3. 34CompilerProgramming Fundamentals, p. 13A compiler is a program that translates source code written in a programming language into a lower-level form, such as machine code, that a computer can run.
  4. 35InterpreterProgramming Fundamentals, p. 35An interpreter is a program that runs source code directly, step by step, instead of first translating the whole program into a separate executable file.
  5. 36LibraryProgramming Fundamentals, p. 39A library is a collection of ready-made code, such as functions and classes, that a program calls to do common jobs without writing that code itself.
  6. 37FrameworkProgramming Fundamentals, p. 25A framework is a reusable foundation of code, tools, and conventions that provides the structure of an application, so developers only fill in their own logic.
  7. 38Package ManagerProgramming Fundamentals, p. 47A package manager is a tool that installs, updates and removes software packages and their dependencies, resolving versions automatically.
  8. 39SDKProgramming Fundamentals, p. 57An SDK (software development kit) is a package of tools, libraries, documentation and examples for building software for a particular platform or service.

Along the way, compare

Pairs on this path that are easy to mix up, side by side.

More

Settings