UsersTools Bookmarks 0

Free Places to Learn to Code, From First Line to Job

You can learn to program to a professional standard without paying for a course. The free material available today is better than what many paid bootcamps used a decade ago, and much of it is written by universities, nonprofits and working developers who simply want more people to code. The hard part is not finding resources; it is choosing a path and sticking to it. This guide lays out one sensible route, stage by stage, and suggests where to go when you get stuck.

Stage zero: are you curious?

If you have never written a line of code, or you are helping a child start, begin with Scratch from MIT. Instead of typing, you snap colored blocks together to make sprites move, react and keep score. It teaches loops, conditions, variables and events — the same ideas behind every programming language — without any frustrating syntax errors. A weekend of making a small game is the best way to discover whether you enjoy the logic of programming.

Stage one: a real foundation

Adults who want a rigorous start should take CS50x, Harvard’s introduction to computer science. It is demanding, it starts with C, and it moves on to Python, SQL and web basics. The lectures are famously engaging, and every problem set has a free automatic grader. Finishing CS50 gives you a mental model of what a computer is actually doing that many self-taught programmers lack.

If your goal is building websites, freeCodeCamp offers a structured curriculum of interactive lessons and projects that ends in free certifications. The Odin Project takes a different approach: it has you set up a real development environment on your own machine from the start and build projects the way professionals do, supported by a large Discord community. Many learners use freeCodeCamp to get going and the Odin Project to become job-ready.

Stage two: learn the web properly

Two references deserve a permanent bookmark. MDN Web Docs, maintained by Mozilla, is the authoritative documentation for HTML, CSS and JavaScript, with a beginner learning area. JavaScript.info is the most thorough free tutorial on the language itself, explaining closures, promises and the event loop with exercises after each chapter.

CSS layout trips up nearly everyone, so make it a game. Flexbox Froggy and CSS Grid Garden each teach one layout system through short puzzle levels; an afternoon on each saves weeks of confusion.

Stage three: the tools every developer uses

Version control is not optional. Learn Git Branching visualizes your repository as you type commands, which finally makes branching and rebasing make sense. Databases are everywhere too, and SQLBolt teaches the basics of SQL in short interactive lessons that you can finish in a day.

As you write more code, regex101 will save you whenever you need a regular expression, explaining each part in plain English, and DevDocs gives you fast, searchable documentation for hundreds of languages and libraries in one place.

Free books worth reading

Automate the Boring Stuff with Python by Al Sweigart is the ideal first book for people who want programming to make their work easier: renaming files, filling in spreadsheets, sending emails. Eloquent JavaScript by Marijn Haverbeke is a deeper read that teaches how to think like a programmer. Both are free to read online in full.

Stage four: practice, practice, practice

Courses teach concepts; practice builds skill. Exercism offers exercises in around seventy languages, and volunteer mentors will review your solutions and suggest better approaches. Codewars ranks you up as you solve community-written challenges and then shows you how others solved the same problem — a great way to learn idioms.

Puzzle lovers have two classics. Advent of Code releases a two-part puzzle every day each December, and all past years stay online. Project Euler combines math and programming in hundreds of problems that get steadily harder.

Choosing a specialty

Once you are comfortable with one language, branch out. Kaggle Learn has short, practical courses in Python, pandas and machine learning that run in hosted notebooks. fast.ai teaches deep learning top-down: you train a working model in the first lesson and learn the theory as you need it. If security interests you, OverTheWire offers wargames played over SSH; the Bandit series is the friendliest introduction to the Linux command line we know.

Habits that matter more than any resource

  • Code a little every day rather than a lot once a week.
  • Build something you actually want, even if it is small.
  • When stuck for more than thirty minutes, write down exactly what you expected and what happened instead; you will often solve it while writing.
  • Read other people’s code on Exercism and Codewars after solving a problem.
  • Keep a simple log of what you learned; it will be the backbone of your portfolio.

All the resources below are free to use; a few ask for an account to save your progress. Explore the learning category for more, and the developer tools shelf for utilities you will use daily.

Written by Jordan Park (pen name) with AI-assisted drafting; every listed site was link-checked on the date shown.

The 21 sites in this collection

scratch.mit.edu · Learning

MIT-born block-based programming environment where kids snap together code to make games and animations and share them.

Good for: Kids aged 8 to 16 starting to code

  • Free
  • No signup
  • Open source
  • Web · Windows · Mac · Android

Link checked · Source code

cs50.harvard.edu · Learning

Harvard's famous introduction to computer science, with all lectures, problem sets and an online grader free for anyone.

Good for: A rigorous first course in programming

  • Free
  • No signup
  • Web

Link checked

freecodecamp.org · Learning

Nonprofit curriculum of interactive lessons and projects in web development, Python and data, ending in free certifications; a large tutorial library is attached.

Good for: A structured path into web development

  • Free
  • No signup
  • Open source
  • Web

Link checked · Source code

theodinproject.com · Learning

Open-source full-stack curriculum that has you build real projects on your own machine, backed by an active Discord community.

Good for: Learners who want a project-heavy path

  • Free
  • No signup
  • Open source
  • Web

Link checked · Source code

developer.mozilla.org · Learning

Mozilla's reference and tutorials for HTML, CSS, JavaScript and web APIs, including a beginner learning area.

Good for: Authoritative answers on web standards

  • Free
  • No signup
  • Open source
  • Web

Link checked · Source code

javascript.info · Learning

Thorough modern JavaScript tutorial from basics to advanced topics like closures, promises and the event loop, with tasks after each chapter.

Good for: Understanding JavaScript properly

  • Free
  • No signup
  • Open source
  • Web

Link checked · Source code

flexboxfroggy.com · Learning

Twenty-four levels of guiding frogs onto lily pads by writing CSS flexbox rules, a painless way to memorize the properties.

Good for: Learning flexbox in an afternoon

  • Free
  • No signup
  • Web

Link checked

cssgridgarden.com · Learning

Water a carrot garden by writing CSS Grid placement rules; each level introduces one more grid property.

Good for: Getting comfortable with CSS Grid

  • Free
  • No signup
  • Web

Link checked

learngitbranching.js.org · Learning

Visual puzzle levels where you type Git commands and watch the commit tree change, covering rebases, cherry-picks and remotes.

Good for: Finally understanding rebase

  • Free
  • No signup
  • Open source
  • Web

Link checked · Source code

sqlbolt.com · Learning

Short interactive SQL lessons with exercises you run in the page, from simple SELECTs through joins and aggregates.

Good for: Learning SQL basics fast

  • Free
  • No signup
  • Web

Link checked

automatetheboringstuff.com · Learning

Al Sweigart's practical beginner book, free to read online, about using Python to rename files, fill spreadsheets and scrape web pages.

Good for: Office workers learning to code

  • Free
  • No signup
  • Web

Link checked

eloquentjavascript.net · Learning

Marijn Haverbeke's well-regarded book on programming through JavaScript, readable free online with runnable code examples.

Good for: Learning to think like a programmer

  • Free
  • No signup
  • Web

Link checked

exercism.org · Learning

Coding exercises in about seventy languages with optional feedback from volunteer mentors, run as a nonprofit.

Good for: Getting fluent in a second language

  • Free, account needed
  • Account needed
  • Open source
  • Web

Link checked · Source code

codewars.com · Learning

Community-written coding challenges called kata that rank you up as you solve them, then show how others solved the same problem.

Good for: Learning idioms from other people's solutions

  • Free, account needed
  • Account needed
  • Web

Link checked

adventofcode.com · Learning

Eric Wastl's yearly December calendar of two-part programming puzzles, with every past year's puzzles left online.

Good for: Practicing algorithms in any language

  • Free
  • No signup
  • Web

Link checked

projecteuler.net · Learning

Hundreds of math problems that need a short program to solve, ordered roughly by difficulty; an account tracks your solutions.

Good for: Sharpening math and algorithm skills

  • Free
  • No signup
  • Web

Link checked

kaggle.com · Learning

Bite-size courses on Python, pandas, SQL and machine learning with exercises in hosted notebooks; saving work needs a free account.

Good for: A fast intro to data science

  • Free
  • No signup
  • Web

Link checked

course.fast.ai · Learning

Practical Deep Learning for Coders, a top-down course that has you training working models in the first lesson before explaining the theory.

Good for: Programmers getting into AI

  • Free
  • No signup
  • Web

Link checked

overthewire.org · Learning

Security wargames played over SSH; the Bandit series is a gentle way to learn the Linux command line through puzzles.

Good for: Learning Linux commands by playing

  • Free
  • No signup
  • Web

Link checked

regex101.com · Tools

Regular expression tester that explains each token in plain English and highlights matches as you type. Supports PCRE, JavaScript, Python, Go, Java and .NET flavors.

Good for: Debugging a regex that almost works

  • Free
  • No signup
  • Web

Link checked

devdocs.io · Tools

Single fast search box over API documentation for hundreds of languages and libraries; pick your stack and it caches the docs for offline use.

Good for: Looking up API signatures without ads

  • Free
  • No signup
  • Open source
  • Web

Link checked · Source code

More collections