What 42 actually is

42 is a tuition-free, campus-based programming school with no teachers and no formal curriculum. You are handed a specification and a deadline; you work it out with the people sitting next to you. Every project is defended in peer evaluation, where another student runs your code, tries to break it, and asks you to explain your choices out loud. Nothing passes because you say it works.

The core is written in C, from scratch, with a deliberately short list of permitted library functions. You do not get to call printf until you have written it. That constraint is the point: it forces you to understand memory, allocation and failure modes rather than to route around them. Only later does the curriculum let go — into C++ and object orientation, then networking, containers and finally a web application where nobody tells you what to build it with.

What I took from it

  • Specifications are adversarial documents. The gap between what a spec says and what you assumed it says is where every failed evaluation lives — and where every compliance finding lives too.
  • Debugging is a discipline, not a talent. Valgrind, minimal reproductions, and a willingness to be wrong in public.
  • Peer review works when it has teeth. Defending your design to someone who has read the same spec and is unimpressed by effort is the fastest feedback loop I have found.
  • Learning without instruction. Every technology I have picked up since — including everything on the LLM Harness Eval project — was learned the same way.
Projects

Featured projects

philosophers

C · Concurrency

The dining philosophers problem solved with threads and mutexes: one thread per philosopher, one mutex per fork and a separate monitor thread that detects starvation and counts meals. A consistent global order for picking up forks rules out deadlock. Sleeps are split into short slices, because a plain usleep can overshoot by tens of milliseconds, and with tight parameters that is enough to kill a philosopher. ThreadSanitizer checks for data races, because a hundred clean runs prove nothing.

Cthreadsmutexestiming

View source on GitHub

minishell

C · Processes · Team of 2

A bash-style shell written from scratch in C. Every line goes through tokenisation, variable expansion (including $?), grouping into commands and a syntax check before it reaches fork and execve. It handles pipes, redirections (heredoc included), quoting, signals and seven builtins such as cd and export. The interesting part is everything that happens before a program runs: "$HOME/my dir" is one argument, and an undefined variable is zero arguments.

Cprocessessignalsparsing

View source on GitHub

CPP Modules 00–09

C++98 · OOP

Ten modules leading from the first class to templates and the STL, all in C++98 with -Wall -Wextra -Werror. Along the way: references and memory, operator overloading on fixed-point numbers, inheritance and the diamond problem, abstract classes, exceptions and the four casts. From module 02 every class follows the Orthodox Canonical Form, and the STL is off limits until module 08. Module 09 closes it out: a bitcoin price converter on std::map, an RPN calculator on std::stack and merge-insert sort on two containers.

C++98OOPtemplatesSTL

View source on GitHub

NetPractice

Networking · Subnetting

The one 42 project without a single line of code: ten broken networks in the browser, fixed by choosing IP addresses, masks and routing table entries until every host can reach every other. The levels start with two computers on one cable and end with topologies of several routers. The repository holds the saved configuration of every level and the method that solves all of them: the same mask on both ends of a cable, a gateway inside its own subnet and a way back for every route.

TCP/IPsubnettingrouting

View on GitHub

cub3D

C · Graphics · Team of 2

A first-person 3D engine in the spirit of Wolfenstein 3D, written in C on the minimal MLX42 library. Each of the 1280 screen columns gets one ray: DDA finds the first wall, and the strip height comes from the perpendicular distance to the camera plane, which removes the fisheye effect. Walls have a separate texture for each compass direction. Parsing is the bigger half of the work: the .cub scene file is validated in detail, and a flood fill from the player's position decides whether the map is closed.

CraycastingMLX42parsing

View source on GitHub

ft_irc

C++ · Sockets · Team of 2

An IRC server in C++: one process, one thread and one poll() loop that serves many clients at once and never waits on a slow connection. The sockets are non-blocking, so the server buffers each client's data itself: a command can arrive in pieces, and a reply does not always fit in one send(). It supports registration, channels, private messages and the operator commands KICK, INVITE, TOPIC and MODE with the i, t, k, o and l modes. Any regular IRC client, such as irssi, can connect to it.

C++socketspollprotocol

View source on GitHub

Inception

Docker · Sysadmin

A working WordPress site on Docker Compose where every image is written by hand: three containers start from a pinned Alpine release, with no official images at all. NGINX accepts only TLS 1.2 and 1.3 with a certificate generated at build time, WordPress runs on PHP-FPM 8.3, and MariaDB creates its database from a template on first start. Persistent volumes hold the data, and the containers talk over their own network. The project shows what ready-made images actually do and why a service in a container has to run in the foreground.

DockerNGINXMariaDBTLS

View source on GitHub

ft_transcendence

Web · Docker · Team of 5

The final common-core project: a real-time Pong platform with accounts, friends, chat, tournaments, an AI opponent and a 3D mode in Babylon.js. The frontend is a single-page app in TypeScript with no framework like React: the router and views are written by hand. The backend runs on Fastify with SQLite and WebSockets. Sessions use JWT, and login supports two-factor authentication and Google accounts. Everything runs in four containers behind a ModSecurity web application firewall with the OWASP rule set.

TypeScriptFastifyWebSocketDocker

View source on GitHub

Other projects from the curriculum

libft

C · Foundations

A reimplementation of part of the C standard library: strings, memory operations, linked lists and conversions. Written from scratch and reused in later projects.

born2beroot

Linux · Sysadmin

A Linux virtual machine configured to a strict specification: encrypted LVM, SSH without root login, a firewall, sudo and password policies, and a monitoring script run by cron.

get_next_line

C · Static state

A function that returns the next line from a file descriptor on every call, for any buffer size and several descriptors at once, without leaking memory.

ft_printf

C · Variadics

My own printf with the standard conversions and flags, built on variadic arguments and a hand-written format parser.

push_swap

C · Algorithms

Sorting a stack of integers with a restricted instruction set in as few operations as possible. An optimisation problem in practice.

minitalk

C · Signals · IPC

A client and a server that talk using only SIGUSR1 and SIGUSR2: each character travels bit by bit, and the server acknowledges receipt.

Not sure where your AI systems stand?

Start with a short, no-obligation conversation. I will tell you honestly whether you have a problem worth paying to solve.