Elemental SystemsSilicon · Boards · Software

Companion to the book Programming in Any Language in the AI Age

Set Up Your Language

Step-by-step guides for complete beginners. Pick a language, install it on Windows from its official source, and run your first program. No programming experience needed: if you can use Office and a smartphone, you can do this.

Every guide follows the same six steps: what to download, how to install it, how to check it worked, how to write a first program, how to run it, and the mistakes almost everyone makes at the start. If you are not sure which language to choose, Python or JavaScript are the gentlest starts.

Choose a language

JavaScript (Node.js)

The language of every web page. With Node.js it also runs on your computer and on servers, and it has the largest collection of free add-on packages.

Set-up: Easy

Python

The most popular first language: reads almost like English. Used for automation, data analysis, science and artificial intelligence.

Set-up: Easy

Bash / Shell

The command language of Linux and Mac. Used to automate tasks and to run servers, almost all of which use Linux.

Set-up: Easy

TypeScript

JavaScript with labels for what kind of data each thing holds, so mistakes are caught before the program runs. Popular for large web apps.

Set-up: Easy (needs Node.js)

Java

A long-time favourite for large business and banking systems and Android apps. Programs run on any computer that has Java.

Set-up: Easy

C#

Microsoft's main language: Windows programs, business websites and games made with the Unity engine.

Set-up: Easy

PowerShell

Automates Windows itself: files, settings, users and Microsoft's cloud services. Already on every Windows computer.

Set-up: Easy (already on Windows)

C++

Fast programs that get the most out of the hardware: games and game engines, browsers, design and video software.

Set-up: Medium (more steps)

C

The classic language underneath everything: operating systems, device drivers and the tiny computers inside appliances, cars and gadgets.

Set-up: Medium (more steps)

Rust

As fast as C and C++, but designed to prevent whole families of crashes and security holes. Growing quickly in systems and web services.

Set-up: Medium (large download)

PHP

Builds web pages on the server. Powers WordPress and so a large share of all websites.

Set-up: Medium (manual steps)

Go

Google's simple, fast language for servers and cloud tools. Docker and Kubernetes are written in it.

Set-up: Easy

Kotlin

Google's preferred language for Android apps. A modern, shorter alternative to Java that works with Java code.

Set-up: Medium (needs Java)

COBOL (GnuCOBOL)

The language of bank, insurance and government systems since the 1960s. Still runs a large share of the world's money transactions.

Set-up: Medium (more steps)

Before you start

Five minutes here saves hours later. These steps are the same for every language.

Show file name endings

File names have an ending after a dot, such as .docx or .py, that tells Windows what kind of file it is. Windows hides them by default, which causes the most common beginner problem: a file that looks like hello.py is really hello.py.txt.

  1. Open File Explorer (the yellow folder icon on the taskbar, or press Windows key + E).
  2. Windows 11: click View at the top, then Show, then tick File name extensions.
  3. Windows 10: click the View tab at the top and tick File name extensions.

Make a folder for your code

  1. In File Explorer, click This PC, then open Local Disk (C:).
  2. Right-click an empty area, choose New → Folder, and name it code. The guides save every program in C:\code.

Open Terminal

Terminal is a window where you type commands instead of clicking. It looks plain: dark background, a line of text ending in > and a blinking cursor. Commands run when you press Enter.

  1. In a particular folder (best): open the folder in File Explorer, right-click an empty part of the window and choose Open in Terminal. The line before the cursor shows the folder, for example PS C:\code>.
  2. From the Start menu: press the Windows key, type Terminal and press Enter. Then go to your folder by typing cd C:\code and pressing Enter.
  3. Windows 10: if you have no Terminal, use Windows PowerShell from the Start menu instead, or install Windows Terminal from the Microsoft Store. In File Explorer, hold Shift and right-click to see Open PowerShell window here.

Tips: you can paste into Terminal with Ctrl + V or a right-click. Press the up arrow to bring back the last command. Commands must be typed exactly, but capital letters usually do not matter in Windows commands (they do inside your programs).

After installing anything: reopen Terminal

Close every Terminal window you have open and open a new one. A Terminal that was already open does not know about programs installed after it started.

Adding a folder to the PATH

The PATH is a list of folders where Windows looks for programs when you type a command. Most installers add themselves; for C, C++, PHP and Kotlin you add one folder yourself:

  1. Press the Windows key and type environment variables. Click Edit environment variables for your account.
  2. In the top box (User variables), click the line Path and then Edit….
  3. Click New and type (or paste) the folder the guide gives, for example C:\msys64\ucrt64\bin. Check the spelling.
  4. Click OK, then OK again. Close and reopen Terminal.

To see the PATH in Terminal, type $env:Path -split ";": each folder is shown on its own line.

Write code in Notepad, not Word

Word changes straight quotes " into curly ones “ ” and adds hidden formatting, and programming languages reject both. Use Notepad, or later the free Visual Studio Code editor. When saving in Notepad, set Save as type to All files (*.*) so Windows does not add .txt.

When something goes wrong

Read the error message from the top: it usually names the file, the line number and what it expected. Each guide lists the mistakes beginners meet most. If you are still stuck, copy the whole message and paste it into an AI assistant together with your code.

Every download link on these pages goes to the language's official website or to its official, well-known distributor. We are not connected with any of them, and we do not store any information about you.