Programming languages compared
The same task in all languages side by side – ideal for switching languages or understanding the differences. Your own selection: interactive comparison.
Hello World
The classic first program: printing some text. Here is what it looks like in every language.
Variables
Store values and declare or infer types – the foundation of every program.
Conditionals
Make decisions and control the flow with if/else or its equivalents.
Loops
Repeat tasks: counting loops and loops over collections compared side by side.
Functions
Bundle reusable logic into functions – with parameters, default values, and return values.
Lists and Arrays
Create, extend, filter, and sort lists or arrays.
Dictionaries and Maps
Key-value collections: dictionaries, maps, and hashes.
Classes and Objects
Object-oriented programming: classes, objects, and inheritance – or each language's equivalent.
Error Handling
Catch and handle errors: try/catch, exceptions, error values, or return codes.
Reading Files
Reading and writing files – the introduction to input and output.