How I make the SergioLearns articles — from my notes to the scheduled post, with the code actually run (and what AI does and what I do)
When you read a SergioLearns article you see the result: a topic explained with code, outputs, diagrams and exercises. What you don’t see is everything that happens before it goes live. And I think you have the right to know it, especially one thing: which part I do and which part artificial intelligence does.
So here it is, step by step and with no frills: where the content comes from, how the code is checked in each language, who writes what, how it’s translated, how it’s reviewed and what happens if you find a mistake. With real examples from topics that are already published.
“Behind the site” series · article 2 of 2. The first one tells the SergioLearns story: from one night installing Python in March 2026 to the site you see today.
Table of Contents
In short: who does what
The short version is this: the idea, the content, the anecdotes and the final review are mine; Claude, Anthropic’s AI assistant, helps me structure and write. On top of that, Claude writes and runs the code, draws the diagrams and does the English translation, always following what I set out and with my review at the end.
If I wrote it as a build, it would look something like this (it’s a summary shaped like a terminal, not the output of a real program):
$ make article [ OK ] class notes, mine and my lecturers' [ OK ] round of questions: what's hard, which example, which anecdote [ OK ] structure for the article type [ OK ] code run once (python3, javac, gcc…) [ OK ] real outputs copied as they are [ OK ] diagrams generated from the code's own data [INFO] draft and translation with AI help [ OK ] reviewed by Sergio before the date [ OK ] scheduled for 9:00 · code on GitHub
And as a drawing, with what I do on the left and what Claude does on the right:
The table, for anyone who prefers one line per step:
| Step | I do it | Claude does it |
|---|---|---|
| Choosing the topic and its order | Yes | — |
| Source material | My notes, my lecturers’ and my exams | — |
| Angle, guiding example and anecdote | I decide | Proposes options |
| Structure and writing | I review | Writes |
| Code | I choose which programs go in and review them | Writes and runs it once |
| Diagrams | I review | Generates them from the code’s data |
| English translation | I review wording and tone | Translates |
| Quiz questions | I set what to focus on | Writes the wording and options |
| Review before publishing | I read every post | — |
| Code on GitHub | I do the push | Prepares the files |
Where the content comes from
Everything starts with my notes: the materials our lecturers give us, my own class notes and what I remember from going through each course (what I struggled with, where I went wrong, what came up in the exam).
From that, completely original content is written. I want to make this very clear:
- The notes and the exams tell me which topics are covered, what format the exam has and what tends to be hard. They are not copied.
- Exam questions and question banks are never copied, and neither are paragraphs from the notes. The examples, the data and the questions are made up for each article.
- The definitions you need for the exam do appear, but explained in our own words.
Thinking that “summarising the lecturer’s notes” is creating content. It isn’t: it’s copying them with other words. Here the notes set the path, but the explanation, the examples and the exercises are new.
The order is also set by the notes. Each course is published topic by topic following the syllabus, and no new topic is opened until the previous one is complete with its theory, practice and exercises. That’s the idea the site was born with: no gaps.
The round of questions
Before writing a single line, Claude asks me a round of questions about the topic. Always the same four ideas:
| Question | What it’s for |
|---|---|
| What’s hardest in this topic? | The real difficulties I saw in class decide where things are explained more slowly |
| Which guiding example do we use? | An everyday example that runs through the topic’s three articles (a student profile, the canteen queue, a playlist…) |
| Is there an anecdote? | If there is, which kind: one that happened to me or a symbolic one (I explain it below) |
| Which tag does it get? | The topic’s concept, so the article shows up in its place in the syllabus |
With my answers, Claude proposes the structure and writes. I decide the angle and choose among what it proposes.
A real example: CPU scheduling
For the IC2 CPU scheduling topic, the guiding example was the night before a lab assignment is due, with four processes anyone recognises: OneDrive syncing (it arrives at time 0 and needs 8 ms of CPU), gcc compiling (arrives at 1, needs 4), the virtual campus (arrives at 2, needs 9) and Spotify (arrives at 3, needs 2). Those four processes are used to explain FCFS, SJF, SRTF and Round Robin in the theory, to solve problems in the practice and to set exercises with different data.
Why an example like that and not “P1, P2, P3, P4”? Because when you see Spotify, which only needs 2 ms, waiting behind OneDrive, gcc and the campus, you instantly understand why FCFS isn’t fair to short processes. Letters don’t tell you anything; a student’s laptop does.
The structure of each article type
Each article type has a fixed structure. Not out of rigidity: it’s so you know what you’ll find and don’t miss anything.
| Type | What it always includes |
|---|---|
| Theory | Hook, table of contents, the concepts with diagrams and commented code, typical mistakes, a section to watch it step by step, summary and three ideas to take away |
| Practice | Three programs, and in each one: the idea, the code, the real output, the questions you might ask and variations to try yourself |
| Exercises | Three levels with hints, “What’s wrong here?”, explained solutions, a quiz and a cheat sheet |
| “Paper” topics | Theory with a Python simulator, guided practice with exam-style problems and exercises with a quiz |
| Mock exam | The exam explained in depth and a timed mock exam with a mark |
| Project | One chapter per version: design, code piece by piece, decisions, tests and what went wrong |
| Experience | Like this one: first person and only with what I tell |
Articles with code also have a section to watch the program step by step in Python Tutor (or in the MIPS playground, or in the terminal), because reading code isn’t the same as watching it run. And almost every code block has a button to open it in the site’s playground and run it without installing anything.
There’s one rule that applies to all of them: explain in depth. Never two code blocks in a row without text between them, comments that say why (not just what), turn-by-turn trace tables for loops, and the arithmetic checked by hand in the text. The reason is simple: if I get lost in a line when I reread an article, the article isn’t finished.
The code: it’s run once and the outputs are real
This is the part I’m proudest of, because it’s the one that builds the most trust: every output you see in an article comes from a real run. Nobody makes up what “should” come out.
It works like this: the code is written by Claude and run only once, in an isolated Linux environment, with each language’s real tools. Whatever appears on screen is copied as it is into the article. I decide which programs go in and I review them when I read the article.
Each language has its own way of being checked:
| Language | How it’s run | A detail that matters |
|---|---|---|
| Python | python3 | The data that would come from the keyboard is written into the program itself, so the output is always the same |
| Java | javac and java 21 | It runs with the language set to Spanish, so decimals come out with a comma just like on a Spanish computer |
| C | gcc -Wall -std=c11 | Whatever is typed is actually typed into a terminal, compiler warnings are shown too, and memory errors are caught with AddressSanitizer |
| Linux | A bash terminal with a normal user | Never as administrator, because the administrator skips permissions and the output would be a lie |
| MIPS | The SPIM core, the same one as the site’s playground | Memory dumps come out in the same format as in QtSpim |
And the English version? It isn’t run again: the text, the variable names, the comments and the outputs are translated. It sounds like a detail, but there’s a catch:
If a program sorts by text, translating the names can change the order. That’s why, when a result depends on the text (alphabetical order, a length, a letter count), translations are chosen so they give the same result, or that part is left untranslated.
A real example from the MIPS topics: in one program, the names of the items in an inventory are stored in memory, and the position of each piece of data depends on how much space the previous one takes. If “Espada” were translated as “Sword”, everything after it would move to a different address and the article’s text wouldn’t match any more. That’s why it was translated as “Dagger”, which has the same six letters, and “POCION” as “POTION”. The memory addresses are identical in both languages.
If something can’t run in that environment, the article says so. And when the output changes from one computer to another (a process number, the order between threads), the single run’s output is shown and the article warns you that yours will be different.
The diagrams
Every article has diagrams that explain something, they’re not decoration: what memory looks like, how a packet travels, how a loop moves forward turn by turn. A program draws them from the same data the article’s code uses, so what you see in the drawing matches what comes out on screen. Today there are more than 500 in the published articles.
They all follow the site’s palette, have a title and a description for screen-reader users (and for Leo, the site’s assistant, who reads that title when you ask him about a drawing), and before publishing they’re checked with a screenshot so no text spills out of its box.
The English translation
The English version of each article is generated with Claude: it’s not a summary, it’s the full article, with complete solutions and translated code. I review it mainly in the introduction and the parts that aren’t code, so the wording and tone sound natural. The code is the same program with its names and text translated, and its outputs are those of the Spanish run, translated the same way.
The anecdotes
Many articles start with a short story: the program that failed the night before the deadline, the error you didn’t understand… Those anecdotes are symbolic: typical situations you might run into, meant to make you feel identified and to show what what you’re about to learn is for. Some actually happened to me and many didn’t.
What doesn’t change is that I choose and review them. In experience articles, like this one, there are none: everything I tell is real.
Quizzes and mock exams
The quiz and mock exam questions are guided by me: I tell Claude what to focus on based on the exams I’ve taken myself (their format, what kind of question comes up, what’s hard). The wording and the options are written by Claude.
They’re all original: they ask about the same things as the exam, but with different wording, different data and different options. And the ones with code (“what does this program print?”) are checked by running them, like everything else.
They use the same formats as the real exams: single answer, multiple answer (with penalties), true or false, fill in the gaps, matching, ordering, short answer, open questions and tables that mark themselves, such as Gantt charts. The mock exams gather the published questions for each course on the spot and mark them with the real scoring and penalties.
The covers
Featured images come from my own generator, which runs in the browser. Each article type has its colour pill (theory, practice, exercises, guide, exam, project and, since this series, “Behind the site”), and theory and practice ones carry a few lines of the article’s real code.
From text to WordPress, with no broken blocks
The article is first written as a text document with simple marks (headings, lists, tables, callout boxes, code blocks). A converter turns it into WordPress blocks and a validator checks that none of them is broken: the result has to be “zero invalid blocks”. Then the files are uploaded to the WordPress dashboard from a box where I select the folder, without passing the content through by hand.
This step sounds technical, but it has a practical consequence: every article’s table of contents, the anchors to link to a specific section and the code blocks with their language always come out the same way, in every article.
Review and publishing
When everything is ready, the article is left scheduled. Posts aren’t published straight away: each batch comes out at 9:00 the day after the last scheduled one, so the site grows at a normal pace and not in bursts.
Before the date, I read and review every post. I’ve sent some back to draft now and then, because of a mistake or small changes I wanted to make. If something doesn’t convince me, it doesn’t go out.
The same process was used, between 26 October and 2 November, to renew the articles I had written from March to September: 39 batches in which the text, the code, the diagrams and the English version were rebuilt, keeping each article’s address and date.
The code on GitHub
The programs from the practice articles, the exercises and the projects are in the public repository sergiolearns-codigo, organised by language and topic: today there are more than 700 files. Each file’s header says which article it comes from and links to it, so you can download it and run it yourself.
If you find a mistake
Even though everything is reviewed, some slip through. If you find one, let me know however you prefer:
- Through the contact page.
- By email, at sergio@sergiolearns.com.
I check it and, if it’s a mistake, I fix it in the article (and in the repository’s code, if it’s there).
Questions you might ask
So are the articles written by an AI? The writing, the code, the diagrams and the translation, yes, with Claude’s help. The idea, the source content, the angle, the anecdotes and the final review are mine, and nothing is published without me having read it.
Can the code outputs be wrong? They can have typos like any text, but they’re not made up: they come from a real run. If one doesn’t add up, let me know and I’ll check it.
Are the quizzes the exam questions? No. They ask about the same concepts and in the same formats, but they’re original.
Why I’m telling you this
Because I want you to know how what you read is made. AI is a key tool in how I make this site, but the responsibility for what’s published is mine: I decide what gets explained and how, and I review every post before it goes out. And because the best way to trust a site is being able to check it: the code is run, the repository is public and, if something’s wrong, you can tell me.
If you missed the first article in the series, here’s the SergioLearns story.
Keep goingAll Behind the site articlesDid this article help you? Here is how you can support SergioLearns →


