
Chapter 1 · Build and improve your first page
Developing Software with GenAI
Who is this course for?
Students, founders and developers who want to use a coding assistant to build and improve a small website. You do not need prior web-development experience; basic comfort creating a folder and opening a browser helps.
If you already code, focus on clearer task requests, feedback and review. If you are new, follow the personal-site example and use the supplied files when you get stuck. No paid model account is required for the read-through route.
Learn to turn an idea into working software with a coding assistant. Practice by building and improving your own personal website.
Purpose of this lesson
- Build a personal website from a small brief and inspect the result in a browser.
- Add a feature, describe a concrete failure and direct a focused correction.
- Check the result, preserve a working version and explain how the method applies to real products.
Explanation, worked example and practice
Before you start
A computer, browser and a way to save files. One available assistant is enough for the hands-on AI route; open the official setup sources if needed. The workshop opens directly in a browser without Node.js, an account or a build step.
Time to work through this lesson
4 h – 7 h · You do not need to finish in one sitting.
Time breakdown and assumptions
- Reading and examples
- 1 h 20 min – 1 h 50 minRead the method, first-site walkthrough and real-project examples.
- Exercises
- 1 h 10 min – 1 h 50 minWrite and compare requests, correction messages, check plans and handover decisions.
- Assignment
- 1 h 30 min – 3 h 20 minSet up one assistant; build and revise the same personal site, add the independent interaction, check it and prepare a handover.
For a first independent pass with the stated prerequisites: read carefully, try every exercise before opening its answer, allow for setup, debugging and one revision. Breaks, waiting for another person, optional further projects and repeated interview practice are extra. The project continues the same work across units; it is not rebuilt from scratch for every exercise.
Understand the idea
Our visitor is someone who wants to know who you are, see something you have made, and contact you. We will build a page that answers those three questions and works on a phone.
You will ask an assistant for a first version, open its files, add project cards, repair a contact link, and add a project filter. The result is your own local website and a repeatable way to develop software with AI. Publishing comes later.
Worked example
Follow the build using your own public information. The supplied example uses fictional learner Alex Morgan. Its checkpoints are 01-start/index.html, 02-projects/index.html, 03-contact/index.html and 04-filter/index.html. They are teaching examples, not an archived AI conversation.
Try it yourself
Choose one visitor for your personal site. Write one sentence naming that person and two things they should be able to do.
Show a worked solution
“A potential teammate should understand what I contributed to a project and find a way to contact me.” This gives the page a purpose: its project content and contact section now have jobs to do. A different real visitor is fine.
Resources
Code and original product screens keep their original language. The lesson explains them in your selected language.

Chapter 1 · Build and improve your first page
Your job changes; your judgment still matters
The assistant can write the implementation. You decide what should exist and whether it is useful.
Explanation, worked example and practice
Understand the idea
I used to spend much of my development time writing the implementation myself. With coding assistants, I can describe a useful result, inspect a working version and steer the next change. I still have to decide what to build and whether it works.
That shift does not make engineering knowledge obsolete. An attractive page can have a broken link; a working screen can hide a faulty API. Review the behavior and relevant implementation, with deeper checks for higher-risk changes.
Worked example
An assistant creates a beautiful portfolio with a fake “Message sent” notification. The appearance is good, but no service sends the message. Ask it to use an honest email link for this first version, or implement and verify a real sending service later.
Try it yourself
A portfolio has no service that receives messages. Its contact button nevertheless displays “Message sent.” What is wrong, and what honest contact action could this first version offer?
Show a worked solution
The page claims delivery without sending anything. A first version can offer a labeled email link that asks an email application to compose to the supplied address. Its wording should say “Email me,” not “Message sent.” A real sending form would be a separate feature.

Chapter 1 · Build and improve your first page
Choose one route and make a working folder
One available coding assistant and a browser are enough to start.
Explanation, worked example and practice
Understand the idea
First identify your route. A coding assistant in an editor or terminal may edit the folder you select. A text-only chat can return complete file contents, but you must create and save those files yourself. Reading a file, editing it and returning text are different capabilities.
Create a new folder called my-portfolio. Give a file-editing assistant access only to that folder, or save the text-only assistant’s files there yourself. Keep existing projects separate. If needed, open the workspace file guide and the official setup sources before continuing.
Worked example
For the text-only route, ask for complete index.html and styles.css contents, save them side by side in my-portfolio, and open index.html. The next request can build on that working folder.
If you cannot use a model account, download the workshop and open 01-start/index.html in a browser. Use the supplied checkpoints to study the same changes. This read-through route teaches the method, but does not replace trying an assistant yourself.
mkdir my-portfolio
cd my-portfolioTry it yourself
You have a chat assistant that can only return text: it cannot create or edit files on your computer. Explain three steps to turn its two-file website response into a page you can open: what you request, where you save it, and which file you open.
Show a worked solution
1. Ask: “Return the complete contents of index.html and styles.css in separate labeled blocks. Make index.html use styles.css from the same folder.”
2. Save each block under its stated filename inside my-portfolio. Keep both files together. 3. Open my-portfolio/index.html in your browser. The assistant supplies text; you create the local files.

Chapter 1 · Build and improve your first page
Give the assistant a concrete first brief
Ask for a small website you can open, rather than an entire platform you cannot yet inspect.
Explanation, worked example and practice
Understand the idea
Write your name, one sentence about your work, one real project and a contact method. Use only information you want to share. A short brief is enough; uploading your entire private CV is unnecessary.
The request below names the visitor, visible sections, files and limits. Replace the sample information with your own. If your tool cannot create files, ask it to return both complete files instead.
Worked example
This is a teaching prompt you can actually try. SAMPLE-BRIEF.txt contains Alex’s fictional information. Your assistant’s response will differ from the supplied checkpoint; assess its result against the request, not against identical code.
Build a small personal website in this folder.
Visitor: someone considering me for a project.
Content: Alex Morgan; student interested in useful web tools;
one project, Weather sketch, a small weather-interface prototype.
Include an introduction, that project, and a Contact section.
Use index.html and styles.css only, with no build step or external services.
Make it readable on a phone. Do not invent experience or testimonials.
Use a clearly marked placeholder for contact until I supply my address.
Tell me which file to open and what remains unfinished.Try it yourself
Using the visitor you chose in the opening exercise, write a first-site request. Include your public introduction, one project, a contact section, the files to produce and one thing to leave out.
Show a worked solution
“Build a small personal site for a potential teammate to understand my work. Use my supplied name, introduction and Weather sketch project. Include Contact with a clearly marked placeholder. Return index.html and styles.css; make it readable on a phone. Do not add accounts or invent experience. Tell me which file to open.” Replace the sample details with yours.

Chapter 1 · Build and improve your first page
Open the result before asking for more
The first useful feedback comes from the page in front of you.
Explanation, worked example and practice
Understand the idea
Open your assistant’s index.html in a browser. Read it as the intended visitor: is the introduction yours, can you find the project, and is the contact state honest? Then narrow the browser window.
Treat the first output as a draft. Keep the parts that work and record a specific problem before asking for a second change. You do not need to judge every detail at once.
Worked example
In the supplied 01-start/index.html, the fictional name, one project and a contact placeholder make a small complete starting page. It has not sent a message, and its project is sample content. Your own draft should replace those details.
Try it yourself
Your first page opens correctly, but the biography invents a job you never held. Write a focused correction request that preserves the parts that work.
Show a worked solution
“Remove the invented job from my biography and use only the facts I supplied. Keep the current layout, project and contact section. Show me the corrected biography.” After the edit, read that section again to see whether your request was followed.

Chapter 1 · Build and improve your first page
Complete one conversation loop
A useful follow-up connects what you saw to the specific result you want.
Explanation, worked example and practice
Understand the idea
Suppose the assistant made one good project card. You now want to show three projects. Give the two missing project descriptions and ask it to extend that section while keeping the introduction and contact unchanged.
After the change, open the page again and count the cards. Check the original project too. Only then continue. This is the core loop: request, inspect, describe the next change, inspect again.
Pause here: if you can open your page, identify one mismatch and request a focused correction, continue to the workspace tools. If opening files is still unclear, return to the three-step file exercise before adding features.
Worked example
The worked sequence is: first-page request → your actual draft → observation “only one project” → request for two more cards → check all three. 02-projects/index.html is an authored example of the next checkpoint, not proof that a particular model produced it.
Try it yourself
Your page has Weather sketch. Add Reading journal and Study hours in the same style, preserving the rest of the page. Write the follow-up request and say how many cards should then appear.
Show a worked solution
“Keep Weather sketch, my introduction and contact. Add Reading journal, a reading-notes interface, and Study hours, a study-time data summary, using the current card style. Keep the phone layout readable.” The result should have three cards: the existing one plus the two additions.

Chapter 1 · Build and improve your first page
Turn vague wishes into usable requests
Describe the visitor’s action and expected result before prescribing implementation details.
Explanation, worked example and practice
Understand the idea
“Make it professional” can mean many things. “Let a visitor scan three project titles on a phone without horizontal scrolling” gives the assistant a problem it can solve and you can inspect.
Give context, the desired change, boundaries and a check. You may suggest an implementation when you understand the code, but the user outcome remains the reason for the change.
Worked example
Vague: “Fix the cards.” Concrete: “At a 320-pixel viewport the project titles run off screen. Make each title fully readable and keep the page within the viewport. Preserve all three projects and their order.”
Try it yourself
Rewrite “make the cards professional” for this situation: at a 320-pixel viewport, the three project titles extend off screen. State the visible result you want and what must remain.
Show a worked solution
“At 320 pixels, project titles extend beyond the screen. Let every title wrap within its card at a readable size, without horizontal scrolling. Keep all three projects, their order and the wider-screen layout.” This replaces a subjective style request with an inspectable result.

Chapter 1 · Build and improve your first page
Understand what a coding agent can do
An agent can connect file edits and tool use, within the access and permissions it actually has.
Explanation, worked example and practice
Understand the idea
A coding agent may inspect relevant files, propose a plan, edit several files and run checks. A chat-only tool may only return text. Capabilities depend on the product, configuration and permissions.
Before a meaningful edit, ask the tool which files it found and how it will check the result. Read the diff—the record of changed lines—rather than relying only on its completion message.
Worked example
For our project cards, the assistant might edit index.html and styles.css. Its summary should name the changes and any checks actually run. “Done” without an artifact you can open gives you nothing to review.
Try it yourself
The assistant reports “All tests passed” after changing your cards. Write two follow-up questions that would tell you what was actually checked.
Show a worked solution
“Which command or browser actions did you run, and what results did you observe?” and “Which parts, such as the phone layout or contact link, have not been checked?” These ask for evidence and its scope rather than another general assurance.

Chapter 1 · Build and improve your first page
Supply context; do not assume perfect memory
The assistant needs the right facts for this change, even if you discussed them before.
Explanation, worked example and practice
Understand the idea
Model context is limited. Tools may retrieve files, summarize earlier turns or load project notes, but they do not have perfect memory or universal knowledge. Ask them to inspect the current source when a decision depends on it.
For a website change, include the current problem, relevant file and intended behavior. When starting a new conversation, provide a short handover instead of assuming it knows your latest version.
Worked example
A useful handover says: “This is a static site using index.html and styles.css. It has three project cards. Preserve the contact placeholder. Today we are fixing card overflow on a phone.” PROJECT-NOTES.md provides a blank record you can fill with your own brief, decisions and check results.
Try it yourself
A new assistant will fix project-card overflow on a phone. The current site has index.html, styles.css, three projects and a contact placeholder. Write a short handover containing those facts and what must stay unchanged.
Show a worked solution
“Read index.html and styles.css. The site has three project cards and a contact placeholder. At 320 pixels, project titles overflow their cards. Fix that layout while preserving all three projects, their order, the introduction and contact placeholder. Explain the changed files.”

Chapter 1 · Build and improve your first page
Use Emre’s experience without inventing a multiplier
Faster iteration is valuable even when a universal speed claim cannot be justified.
Explanation, worked example and practice
Understand the idea
I described my early emrevarol.com version as roughly four hours of work. That was a first version, not the full site you see today, and not a measured promise about how long your project will take.
We kept developing it with agents: design, lessons, languages, blog, chat and many rounds of corrections. That later effort matters. The useful lesson is how quickly I can try an idea and improve it, not a universal multiplier.
Worked example
Compare the same scope and include review and rework. A weekend draft and a maintained public service are different deliverables. Record what you actually built and checked; do not turn a first-version story into a claim that all future work is free.
Try it yourself
How would you describe the site’s development without implying that the entire current site took four hours?
Show a worked solution
“Emre recalls an early portfolio version taking roughly four hours. The live site continued developing through much more work with agents.” If comparing approaches, measure the same scope and include review, correction and maintenance.

Chapter 1 · Build and improve your first page
Keep the goal ahead of the technology
Your first success is a useful page, not the longest list of frameworks.
Explanation, worked example and practice
Understand the idea
The original lesson expands from a personal website to more complex products. Our small static start makes the development method visible before databases, logins or payments complicate it.
Choose additional infrastructure only when a real requirement needs it. A portfolio introduction and project list can work without accounts. A private learning-progress service needs different architecture and checks.
Worked example
For “show my work and let people contact me,” a static site plus an email link may be enough. For “save each visitor’s private progress across devices,” local HTML files alone are not enough. The task determines the system.
Try it yourself
Your first portfolio only displays your introduction, project descriptions and an email link. Does that requirement need a database? Name one later feature that would change the decision.
Show a worked solution
No database is needed just to display those public details. A later feature that saves each signed-in user’s private progress across devices would need persistent shared storage. Choose the storage approach for that feature, not because every website supposedly needs a database.

Chapter 2 · Understand your workspace
Know the files you are working with
A small project map makes the assistant’s changes easier to follow.
Explanation, worked example and practice
Understand the idea
HTML supplies page structure and content. CSS supplies presentation and responsive layout. JavaScript adds behavior such as selecting which project cards to show.
Our first checkpoint has HTML and CSS. The final filter adds JavaScript. Keep the related files together; if a stylesheet or script path points somewhere else, the page may open without its design or behavior.
Worked example
In 04-filter/index.html the stylesheet and app.js are sibling files in the same folder. Open the complete checkpoint folder, rather than saving only its HTML. README-en.txt explains which checkpoint to use and how to replace the sample content.
Try it yourself
The final checkpoint uses index.html, styles.css and app.js. You save only index.html, so its design and filter are missing. Which files do you need to restore, and where should they be?
Show a worked solution
Restore styles.css for the design and app.js for the filter. In this checkpoint both belong beside index.html, because its links use sibling-file paths. Open the complete 04-filter folder rather than only its HTML file.

Chapter 2 · Understand your workspace
Set up one tool, not every tool
Follow the official installation and sign-in instructions for the assistant you choose.
Explanation, worked example and practice
Understand the idea
Codex, Claude Code and Gemini CLI are examples of coding assistants. You need one working route, not accounts with all three. Access, operating-system support and model availability differ.
Some installation routes use Node.js and npm; others use native installers. Check the chosen tool’s current requirements rather than treating one Node version or API-key method as universal. The static workshop itself needs only a browser.
Worked example
After installation, open your my-portfolio folder in the chosen tool. Ask it to identify the folder and explain the existing files before editing. Never paste an account key into your website, project notes or a public conversation.
Try it yourself
Your chosen assistant starts successfully. Before allowing edits, write one read-only request that checks whether it is looking at my-portfolio and can inspect your website files.
Show a worked solution
“Do not edit yet. Show which folder you are working in, list the files in my-portfolio, and explain what index.html and styles.css currently contain.” Compare its answer with your folder. If you are using a text-only chat, explain that it has no local access and provide the relevant file contents yourself.

Chapter 2 · Understand your workspace
Use local history to protect working progress
A checkpoint lets you compare changes and return to a known working version.
Explanation, worked example and practice
Understand the idea
Git records versions of selected files. It is separate from a model account and separate from publishing. You can use ordinary folder copies while learning, but Git becomes useful as changes accumulate.
After installing Git, initialize it inside your project. Before recording work, inspect git status and git diff. Add only the files for the completed change. If Git requests your name and email, follow its identity setup before committing.
Worked example
These commands record the first two-file website locally. They do not upload it. Read the staged change before committing; do not include private CV files, credentials or unrelated work. Later checkpoints may include app.js too.
git init
git status
git diff
git add index.html styles.css
git diff --staged
git commit -m "Create first portfolio page"Try it yourself
You asked for two new project cards. Before committing, the diff also shows your contact address was deleted. What should you resolve before recording this checkpoint?
Show a worked solution
Keep the two requested cards and restore the contact address unless you deliberately intended to remove it. Inspect the revised diff before committing. The checkpoint should preserve the agreed change, not an unrelated deletion that happened to accompany it.

Chapter 2 · Understand your workspace
Write down the decisions you want to preserve
A few useful project notes beat making the next assistant guess.
Explanation, worked example and practice
Understand the idea
PROJECT-NOTES.md can describe the site’s purpose, files, unfinished behavior and checks. Ask your assistant to read it when starting a task. A plain note is useful even when the tool does not load it automatically.
Some agents recognize instruction files such as AGENTS.md or CLAUDE.md. Names, directory scope and loading behavior vary. Follow the tool’s documentation; an instruction file is not proof that every fact will always be remembered.
Worked example
For this exercise, you might record: static portfolio, no backend, sample content until replaced, honest contact behavior, and readable project cards. PROJECT-NOTES.md starts blank so you can record your own decisions and observations. AGENTS.md contains workshop instructions to adapt to your own project.
Try it yourself
Your site must open from index.html without a build step. You are about to ask for a visual redesign. Write two project-note rules: one preserving supplied content, the other preserving that opening workflow.
Show a worked solution
“Preserve my supplied project facts and link destinations during visual changes.” “Keep the site openable directly from index.html; do not add a build step or external service without discussing the need first.” These notes protect both the content and the way I use the project.

Chapter 2 · Understand your workspace
Give the tool a task it can inspect
Include a starting point, requested change and what should stay unchanged.
Explanation, worked example and practice
Understand the idea
Before editing, ask the assistant to read the files that control the behavior. This anchors the conversation in the version you actually have, rather than a plausible page it invents.
A good request does not have to be long. If the task is unclear, let the assistant ask questions or propose a short plan. Agree on the small result before introducing more features.
Worked example
For card overflow: “Read index.html and styles.css. At 320 pixels the project titles extend beyond the screen. Keep the current content and desktop layout while making all text readable at that width. Explain the changes and how to check them.”
Try it yourself
After a layout edit, the Data filter no longer shows Study hours. Rewrite “make it work like before” using that action, its expected result and the behavior to preserve.
Show a worked solution
“After the layout edit, selecting Data no longer shows Study hours. It should show that one card and a count of one; All should still restore three cards. Inspect index.html and app.js, fix the filter, and preserve the new layout.”

Chapter 2 · Understand your workspace
Read a small piece of HTML
You do not need to type every line to understand an important link.
Explanation, worked example and practice
Understand the idea
An anchor element creates a link. The text between its tags is the visible label; href identifies where activation goes. A label can look correct while its destination is wrong.
In a portfolio, “Contact” may intentionally jump to a section. “Email Alex” should use the supplied address if its purpose is composing email. They are different actions, even if both are links.
Worked example
The fragment below shows both actions. #contact targets an element in the same page. mailto:alex@example.com asks an email handler to compose to that sample address; it does not send or confirm delivery. Replace sample data before sharing.
<a href="#contact">Contact</a>
<section id="contact">
<h2>Contact</h2>
<a href="mailto:alex@example.com">Email Alex</a>
</section>Try it yourself
The label says “Email Alex,” but the anchor is <a href="#contact">Email Alex</a>. Where does it go, and what destination would request an email composer for alex@example.com?
Show a worked solution
It jumps to the element whose id is contact in the same page. To request an email composer for the sample address, use mailto:alex@example.com as href. The visible label does not control the destination.

Chapter 2 · Understand your workspace
Check layout where people will read it
A desktop screenshot is only one view of the website.
Explanation, worked example and practice
Understand the idea
Narrow the browser or use its device preview. Check titles, project cards, links and spacing at phone width. Text should remain readable and controls should not depend on hover.
Ask for the visible problem to be fixed while preserving working behavior. Making all text tiny can eliminate overflow while making the page less useful. Check readability as well as whether it fits.
Worked example
02-projects/index.html is a complete three-card layout you can open and resize. Compare a wide window with a 320-pixel viewport. A column layout on a phone is fine if all project content and actions remain usable.
Try it yourself
At phone width a project title overflows. The assistant makes all paragraphs 10 pixels tall to fit the page. Write feedback that fixes the overflow while protecting readability.
Show a worked solution
“The page fits now, but the text is too small to read. Keep a readable text size and let the cards or titles wrap within the 320-pixel viewport. Preserve all project content and the desktop layout.” This asks for both fit and readability.

Chapter 2 · Understand your workspace
Separate a local page from a published site
Opening your file is different from giving someone a public website address.
Explanation, worked example and practice
Understand the idea
A file:// address opens files on your own device. localhost points to a server on the device opening the address; sending it to a friend does not expose your computer’s site.
Hosting serves files publicly; a domain gives them a name. emrevarol.com currently uses Netlify. Other examples of infrastructure in the original lesson include GitHub for source history, databases for persistent records and email services for sending messages. You do not need all of them for this exercise.
Worked example
Keep building locally first. Later you can choose hosting, review its account and plan requirements, and upload the site. A custom domain is optional. A mailto link needs no server-side mail service; a real contact form does.
Try it yourself
You send a friend http://localhost:3017. Your website runs only on your computer. Why does that link not share your site, and what type of address would let the friend open a published copy?
Show a worked solution
localhost refers to the device opening the link, so the friend would look for a server on their own device. A published copy needs a public hosting URL or domain serving the site. Test that public address separately after publishing.

Chapter 3 · Develop one feature at a time
Start with a result small enough to inspect
A first version should answer one useful question before you expand it.
Explanation, worked example and practice
Understand the idea
For the portfolio, the first question is “Who is this person and what have they made?” An introduction and one project can answer it. A blog, account system and dashboard are separate jobs.
Small does not mean careless. The first page still needs truthful content and readable layout. Limit the number of capabilities so you can inspect them, then grow from a working base.
You already practiced this loop with supplied facts. In the next units, compare complete checkpoints, judge a mixed patch, reproduce a failure and then test state changes. Each step asks a different review question; apply it to your own folder when possible.
Worked example
Compare “build a complete career platform” with the first website request. The smaller request gives you a page to open and a concrete way to decide what is missing. That feedback makes the next request better.
Try it yourself
A potential teammate needs to understand one project and contact you. Your draft request also asks for accounts, a shop and a blog. Write the scope of the first version and name what you would postpone.
Show a worked solution
First version: an introduction, one project showing my contribution and a contact link, readable on a phone. Postpone accounts, the shop and the blog until there is a visitor need for each. The small version already serves the stated visitor.

Chapter 3 · Develop one feature at a time
Add one capability at a time
Make the next change visible enough to test independently.
Explanation, worked example and practice
Understand the idea
The next change is adding two project cards. Keep the first page’s introduction and contact behavior. Supply real titles and descriptions rather than asking the assistant to invent your experience.
The supplied projects are Weather sketch and Reading journal, both Web, and Study hours, Data. These categories will support a later filter. At this stage they are simply labels on three visible cards.
Worked example
Open 01-start/index.html, then 02-projects/index.html. Identify exactly what was added and what remains. When working on your own site, make the equivalent change there; the checkpoint folders are complete alternatives, not files to merge indiscriminately.
Try it yourself
The starting page has one project. You add two more without changing the introduction or contact section. Write three browser checks that establish both the addition and preservation.
Show a worked solution
1. Count three project cards and read the two new titles/descriptions. 2. Confirm the original project, introduction and contact remain. 3. Narrow the window and check that all three cards remain readable.
The first check covers the new work; the others catch regressions. “The page opens” alone does not establish either.

Chapter 3 · Develop one feature at a time
Inspect the change behind the result
A useful diff shows what the assistant changed and whether it stayed within the task.
Explanation, worked example and practice
Understand the idea
A diff compares an earlier version with a later one. It helps you separate the requested addition from incidental rewrites, content loss or new dependencies. You can ask the assistant to explain it, then inspect the relevant files yourself.
Compare the project section in 01-start/index.html and 02-projects/index.html. The first has Weather sketch; the next adds Reading journal and Study hours. The working introduction and contact placeholder remain. You did not need an account system or a new build tool to add two cards.
Worked example
Ask: “Show the changes for the two new project cards. Explain any files outside that section that you changed.” Read the additions and open the result. If the patch silently replaces your biography or removes the first project, preserve the good addition and request a smaller correction.
A different implementation can be valid. The reason to question a large rewrite is its cost and unrelated effects, not that every changed line is automatically wrong. Compare the benefit with the small task you agreed on.
Try it yourself
You requested two new project cards. The diff adds those cards, removes the link to styles.css, and reformats a comment. Which change would you keep, which would you question, and what would you inspect before accepting the patch?
Show a worked solution
Keep the two requested cards. Question the removed stylesheet link: without it the page can lose its design even though the HTML still opens. A comment-only formatting change is lower risk; it is not automatically a reason to reject the patch. Ask for the stylesheet link to be restored unless there is a justified replacement, then inspect the corrected diff and the cards in the browser.

Chapter 3 · Develop one feature at a time
Find a failure you can reproduce
A precise observation is a better debugging starting point than a guess about the code.
Explanation, worked example and practice
Understand the idea
Open 03-broken-contact/index.html in the browser and activate the link labeled alex@example.com. It stays in the contact section instead of requesting an email composer. This is our deliberately broken example.
To find the cause, open the same HTML file in an editor and search for alex@example.com. Read the href on that anchor: #contact is an in-page jump. The intended target is mailto:alex@example.com. The visible address and the destination are separate pieces of the link.
Worked example
This deliberately broken checkpoint is otherwise the same as 03-contact/index.html. The intended correction changes the email link’s destination, not the page design. The sample address is for teaching and must be replaced before you share your site.
Try it yourself
In 03-broken-contact/index.html, clicking alex@example.com stays on the same page and adds #contact to the URL. It should request an email composer for that address. Write a bug report with file, action, expected result and observed result.
Show a worked solution
File: 03-broken-contact/index.html. Action: click alex@example.com. Expected: request an email composer addressed to alex@example.com. Observed: the URL gains #contact and stays in the contact section. That describes the failure without asking someone to guess what “broken email” means.

Chapter 3 · Develop one feature at a time
Ask for the correction, then inspect it
Keep the fix focused on the failure you actually observed.
Explanation, worked example and practice
Understand the idea
Give the assistant the expected and observed behavior from the previous unit. Ask it to inspect the anchor and change the relevant destination while preserving the page.
It might propose building a whole contact service. That is a different feature. For the current requirement, a correctly labeled email link is enough; a server, inbox integration or fake success message is unnecessary.
Worked example
A useful follow-up is: “alex@example.com currently jumps to #contact. Make it open a composer addressed to my supplied email. Preserve the existing card content and layout. Do not display Message sent, because this page does not send email.”
Try it yourself
The assistant proposes a green “sent” toast after activating mailto. Write the actual reply you would send, keeping the correction within the email-link requirement.
Show a worked solution
“Do not add the sent toast. This link only asks an email application to compose to my supplied address; the page cannot confirm delivery. Keep the Email me link, correct address and existing layout. A real sending service is outside this correction.”

Chapter 3 · Develop one feature at a time
Retest the fix and the behavior around it
A change is useful when it fixes the problem without breaking the working page.
Explanation, worked example and practice
Understand the idea
Compare the broken checkpoint with 03-contact/index.html. The alex@example.com destination should now be mailto:alex@example.com. On your site, verify that it uses the address you actually supplied.
Try the link if an email handler is configured. Otherwise you can inspect its destination but should not claim a composer opened. Also check the project cards and mobile layout, because a focused fix should preserve them.
Worked example
An honest check record might say: “The anchor now targets the supplied mailto address; three projects remain visible. This device has no configured email handler, so composer launch was not checked.” That is useful evidence with a clear boundary.
Try it yourself
Your browser has no email handler. Can you still check part of the fix, and what remains unknown?
Show a worked solution
Yes: inspect that the href uses mailto and the correct address, and confirm preserved content. You cannot claim the composer opened or that a message was delivered. State the unchecked behavior plainly.

Chapter 3 · Develop one feature at a time
Describe an interactive feature before coding it
Give the filter a small, explicit contract.
Explanation, worked example and practice
Understand the idea
Our next capability lets visitors show projects by category. There are three projects: two Web and one Data. The controls are All, Web and Data; All is selected initially.
Selecting Web should show the two Web cards; Data should show the one Data card; All should restore all three in their original order. The controls must work with a keyboard, not only a mouse.
Worked example
This request extends the existing page: “Keep all project content and contact behavior. Add category buttons and a visible count. Do not fetch data, create accounts or remove cards permanently. Tell me which files changed.” 04-filter/index.html shows an authored completed example.
Try it yourself
The page contains Weather sketch (Web), Reading journal (Web) and Study hours (Data). State the visible titles and count after Data, then after All. What content outside the filter should stay unchanged?
Show a worked solution
Data: only Study hours, count 1. All: Weather sketch, Reading journal and Study hours in their existing order, count 3. The introduction and contact section stay unchanged; filtering changes project visibility, not the rest of the page.

Chapter 3 · Develop one feature at a time
Understand just enough code to review the filter
Trace one choice through the behavior rather than memorizing the whole script.
Explanation, worked example and practice
Understand the idea
In HTML, data-category="web" labels a card. JavaScript reads that attribute as card.dataset.category. The cards variable below is a list of elements with class project-card, selected from the page.
Trace the Web choice: selected is "web"; the two cards labeled web match and stay visible. Study hours is labeled data, so matches is false and hidden becomes true. Selecting All makes every card match and sets hidden back to false.
Worked example
Weather sketch and Reading journal are Web; Study hours is Data. Calculate the expected counts—three, two, one—from those facts before looking at the implementation. This fragment shows card visibility; 04-filter/app.js adds the actual button events, selected states, count and empty-state feedback.
The matching HTML begins <article class="project-card" data-category="web">. The attribute stores the category; it does not hide the card by itself.
const cards = document.querySelectorAll(".project-card");
const selected = "web";
for (const card of cards) {
const matches = selected === "all" || card.dataset.category === selected;
card.hidden = !matches;
}Try it yourself
Weather sketch and Reading journal have data-category="web"; Study hours has data-category="data". With selected="web", give the matches and hidden values for a Web card and for Study hours.
Show a worked solution
For either Web card, matches=true and hidden=false: it stays visible. For Study hours, matches=false and hidden=true: it is hidden. hidden is the opposite of matches, because a nonmatching card is the one we want to hide.

Chapter 3 · Develop one feature at a time
Test a sequence, not just one successful click
Stateful interfaces can work once and fail when the user changes their mind.
Explanation, worked example and practice
Understand the idea
Try All → Web → Data → All. Check the visible titles and count after every action. Then focus a filter button with Tab and activate it using the keyboard.
Also consider a category with no matching projects. A useful interface shows an empty-state explanation rather than looking broken. You can test that in a disposable copy by changing the only data card’s category, then restore the original data.
Worked example
Normal expectations are 3 → 2 → 1 → 3. For the optional empty-state probe, change Study hours from data to other in a copy, reload, and select Data: expect zero matches and an explanation. All must still recover three cards.
Try it yourself
A faulty filter can hide the Data card when Web is selected, but cannot restore it. Which short sequence and expected titles would expose that bug?
Show a worked solution
Select Web: expect Weather sketch and Reading journal. Then select All: expect those two plus Study hours again. If Study hours is still hidden, the restoration failed. Checking Web alone would pass even with this bug.

Chapter 3 · Develop one feature at a time
Review the implementation where it matters
Check the screen and the changes behind it; they answer different questions.
Explanation, worked example and practice
Understand the idea
The original lesson emphasized testing user-visible behavior rather than rewriting every line to suit your personal style. Keep that useful idea without treating working screens as proof that all code is safe.
For our filter, inspect whether existing cards are retained and hidden/shown, whether untrusted text is treated as text, and whether the patch adds unexpected remote scripts. Authentication, payments and private data require stronger review than a static display filter.
Worked example
An assistant could replace the entire page on every filter click. It might look fine initially but lose content, focus or event handlers. Compare the diff and test the action sequence before accepting the result.
Try it yourself
A patch passes the filter clicks but adds an unexplained external script. What would you do?
Show a worked solution
Ask what the script does and why the feature needs it. Inspect the dependency and remove it if unnecessary. Passing click checks does not justify an unrelated data transfer or dependency. Keep the review proportional to the actual change.

Chapter 3 · Develop one feature at a time
Keep a working checkpoint before moving on
Finish the current capability, record it, and then choose the next one.
Explanation, worked example and practice
Understand the idea
A checkpoint means the promised behavior works under the checks you actually performed. It is not a claim that no possible defect exists. Record what changed, what you checked and any known limit.
For the final filter, preserve the working site before adding another feature. With Git, inspect and commit only the relevant files. With folders, keep a named complete copy that can be reopened.
Before moving to the product cases, explain one request → observed mismatch → correction from your own work or a clearly labeled checkpoint comparison. You are ready when you can distinguish a good-looking result from the specific behavior you checked.
Worked example
A useful record: “Added All/Web/Data controls. Checked 3/2/1/3 sequence, keyboard activation, contact destination and 320-pixel layout. Sample contact address still needs replacing before sharing.” That tells the next person more than “everything works.”
Try it yourself
A previous saved version works. In the new filter version, All → Web → Data → All gives counts 3 → 2 → 1 → 3, but after the final All only Study hours is visible. The 320-pixel layout remains readable. Can you call the filter complete? Write a checkpoint note with the result, the unresolved failure and the version to preserve.
Show a worked solution
“Not complete: counts return to 3, but All does not restore the three visible cards. The 320-pixel layout is readable. Keep the previous working version; retain this draft separately for diagnosis. Fix restoration and recheck both the titles and counts before promoting it to the working checkpoint.” Correct counts alone do not satisfy the filter contract.

Chapter 3 · Develop one feature at a time
Repeat the method with a different capability
Each iteration should teach you something new about the product.
Explanation, worked example and practice
Understand the idea
The contact fix changed a destination. The project filter added state. A later feature might reveal project details, switch a color theme or show an accessible menu. Each has a different interaction to inspect.
Do not keep adding features merely because the agent can generate them. Ask whether they help your visitor. A clear project description may be more valuable than another animation.
Worked example
Suppose visitors cannot tell what you personally contributed to Reading journal. The next useful change may be a short role-and-result paragraph on that card, rather than a search system. Supply truthful content and check whether a reader can understand your contribution.
Try it yourself
Choose one next improvement for your own visitor and name the observation that motivates it.
Show a worked solution
For example: “A potential teammate cannot distinguish my role from the project description. Add a brief My contribution section using my supplied facts.” Explain why that addresses the observed gap before deciding how to implement it.

Chapter 3 · Develop one feature at a time
Use a screenshot to make visual feedback precise
Show the region that needs improvement and explain what the visitor cannot read or do.
Explanation, worked example and practice
Understand the idea
A screenshot can communicate a layout problem more clearly than “make it nicer.” Include the relevant viewport and identify the affected text or control. Give the assistant the current source too; an image does not reveal every behavior or file.
Ask for a bounded visual correction: readable type, usable spacing or sufficient contrast. Then inspect the actual page at the same width and at a wider size. A convincing generated image is not a working website change.
Worked example
Suppose your phone screenshot shows a project title cut off at the right edge. A useful request says: “At 320 pixels, this title extends beyond its card. Keep the title and readable type size; change the layout so it wraps inside the card. Preserve the filter and desktop layout.” Attach the screenshot if your tool accepts images; otherwise describe that region and its dimensions.
Compare the browser result after the edit, rather than accepting a mockup or a screenshot alone. Recheck the affected title, the other cards and the filter action. This connects visual feedback to the same small development loop.
Try it yourself
In a phone screenshot, category labels are faint on dark project cards. Write a focused visual correction request and state what you will inspect after the change.
Show a worked solution
“The category labels are hard to read on these dark cards. Increase text/background contrast without shrinking the text or removing the labels. Preserve the card layout and filtering.” Then inspect the actual page at the same phone width and read every category label; a mockup alone is not the corrected site.

Chapter 4 · Learn from real projects
Learn from Emre’s real projects
The same development loop appears in products with very different requirements.
Explanation, worked example and practice
Understand the idea
I used emrevarol.com, evimibul.org, english.cash, pusulam.ai, deneme.live and an existing-site change to a2sv.org to show what this way of working can produce. The products matter because each brings a different user problem and different engineering decisions.
These accounts come from my earlier lesson, not a fresh audit of every live feature. The requests below are teaching examples based on those product problems. Use them to understand the development decisions; do not treat them as archived model replies or current inventory reports.
These are transfer cases, not six new products you must build. For each one, identify the user’s action, the rule that must hold and evidence that would reveal a failure. Then return to your own website for the final independent change.
Worked example
The portfolio helps someone understand my work. Housing search translates a person’s needs into criteria. English learning needs useful feedback and continuity. Markets need consistent pricing and transactions. Exams need correct rules and saved answers. An existing nonprofit site needs changes that preserve what already works.
Try it yourself
Choose two cases and explain why “it opens in the browser” would be an insufficient success check.
Show a worked solution
For housing, the returned listings must match the supplied criteria. For an exam, answers and score rules must be handled correctly. A reachable page proves neither. Choose similarly specific outcomes for any other pair.

Chapter 4 · Learn from real projects
emrevarol.com: from a personal page to a growing site
A portfolio can grow through real feedback without losing its original purpose.
Explanation, worked example and practice
Understand the idea
My background is in backend and machine learning. For this portfolio I used coding assistants to build a site that introduces my work, shows projects and gives people a way to reach me. A first useful page let me judge the result before expanding it.
The project grew to include languages, lessons, blog and a gallery. Each addition brought new work: content, navigation, design and verification. We have spent much more effort on it with agents since that early version. A first release is a starting point.
Worked example
Consider the language switcher as a concrete increment. Before: a visitor can read one language. Desired change: the visitor can select another language and still find the same introduction, projects and contact. Ask the agent to extend the existing content and controls; then read the second language and follow the project and contact links.
A translated menu with an untranslated body is an incomplete result. A good next request identifies the missing content, keeps the existing layout and asks for a full language pass. This is the same loop as our three-card page, applied to a larger portfolio.
Try it yourself
After adding a second language, the heading changes but every project description stays in the original language. Write the correction request and a check for both language choices.
Show a worked solution
“Translate all project descriptions and interface labels for the second language. Preserve each project’s identity, factual content, link destinations and layout.” Select the second language and read all cards, then switch back and check the original content and links. Proper project names need not be translated.

Chapter 4 · Learn from real projects
evimibul.org: turn a housing request into search criteria
Conversational input still needs precise rules underneath it.
Explanation, worked example and practice
Understand the idea
With evimibul.org, the idea is to let someone explain the home they want instead of starting with a wall of filters. The conversation still has to preserve location, budget, period and requirements when it searches.
In the earlier lesson, I used a renter describing an apartment, a district, a maximum rent and a balcony. The important work is turning that sentence into criteria the user can inspect and correct—not merely producing a friendly answer.
Worked example
Work a smaller version by hand. Request: “Çankaya, at most 1,000 a month, with a balcony.” Extract district=Çankaya, monthly maximum=1,000, balcony=required. In a teaching dataset, A is Çankaya/1,000/balcony; B is Çankaya/1,100/balcony; C is Yenimahalle/900/balcony. Only A matches. The maximum is inclusive; C is cheaper but in the wrong district.
Ask the assistant: “Show the extracted criteria before searching. Keep the requested maximum; do not silently widen it. If nothing matches, explain which constraint can be changed.” Use known records like these to test interpretation, query and displayed result together. These toy prices are not current listings or market estimates.
Try it yourself
A housing request says “Çankaya, maximum 1,000,” but does not say monthly or yearly. Write the clarification the system should ask before comparing prices.
Show a worked solution
“Is your maximum 1,000 per month or per year?” Keep the search pending until the period is known; otherwise a yearly price and a monthly price could be compared as if they meant the same thing. Do not silently choose a period for the user.

Chapter 4 · Learn from real projects
english.cash: feedback should help the next attempt
An AI tutor is useful when its response connects to the learner’s actual answer.
Explanation, worked example and practice
Understand the idea
For english.cash, I described a learning product with practice modules, an AI tutor and progress. A useful first increment is one exercise with understandable feedback; accounts and a complete learning platform can follow in separate steps.
The hard part is not just putting a chat box on screen. The tutor needs the exercise, the learner’s actual answer and enough conversation to answer a follow-up. If feedback fails, the interface must preserve the learner’s work and explain the failure.
Worked example
Try this authored two-turn exercise: prompt “Yesterday I ___ to school”; learner “go”; useful feedback explains Yesterday and the past form went. The learner then asks “Why not goed?” A relevant reply explains that go is irregular and continues the same exercise. A generic new lesson or praise would miss the question.
The request to the coding assistant can be: “Keep the exercise and latest answer in both tutor turns. Let the learner ask why. Preserve the typed message and offer retry when the provider fails.” Check both turns and the failed-response state before adding more modules.
Try it yourself
For “Yesterday I ___ to school,” the learner answers “go,” receives feedback about “went,” then asks “Why not goed?” What should the next reply explain? What should the interface preserve if that reply fails?
Show a worked solution
The next reply should explain that go is irregular and its past form is went, referring to this same sentence and answer. If the reply fails, preserve the learner’s question and the existing conversation, show an honest failure state and allow retry. Do not replace the question with a new exercise.

Chapter 4 · Learn from real projects
pusulam.ai: precise state matters in a prediction market
A persuasive interface cannot substitute for correct pricing and transaction rules.
Explanation, worked example and practice
Understand the idea
In pusulam.ai, I worked with prediction-market concepts, virtual currency and market pricing. This is a different class of problem from a portfolio: believable screens are not enough when balances, holdings and pricing must agree.
The earlier example includes a constant-product market-maker approach. Its mathematics needs separate independent checks. Start with a smaller transaction contract before adding payment services, and get suitable specialist review for real-value or regulated features.
Worked example
A smaller transaction example: starting balance 50 virtual credits, one purchase costs 10, resulting balance 40 and one recorded purchase. Retrying the same identified request should leave the balance 40, not 30. A failed write must not leave a debit with no matching purchase.
Ask for those states and test them against known starting data. This fixed-price example teaches transaction consistency; it does not validate the market-pricing formula. The point is to separate the behaviors so an impressive combined implementation cannot hide a wrong assumption.
Try it yourself
A balance starts at 50 virtual credits. One identified purchase costs 10. The same purchase request is retried. What final balance and number of purchases should remain? Why is a second debit wrong?
Show a worked solution
The balance should be 40, with one recorded purchase. A retry of the same identified request is not a new purchase, so another debit would charge twice for one action. Check the stored transaction and balance, not just the animation.

Chapter 4 · Learn from real projects
deneme.live: encode the exam rule you actually mean
Domain knowledge must become an explicit, testable requirement.
Explanation, worked example and practice
Understand the idea
For deneme.live, the earlier lesson focused on an exam platform with answering, a timer and performance reporting. Here the product knowledge matters: the assistant needs the specific exam’s scoring rule and what happens when time expires.
For a teaching exam configured so four wrong answers cancel one correct answer, net = correct − wrong / 4. With 6 correct, 2 wrong and 2 blanks, the result is 5.5. Blanks have no penalty under this stated rule; do not apply it to every exam type.
Worked example
Develop it in steps: first score one submitted answer set using known counts; then handle a timer reaching zero; then verify the saved answers still produce the same result after reopening. Each step exposes a different failure instead of treating “exam page works” as one check.
An illustrative request is: “At timeout, stop further answer edits, preserve submitted answers and show correct/wrong/blank counts with the configured net.” Compare the result with your own calculation. A timer animation does not prove submission or scoring is correct.
function netScore(correct, wrong) {
return correct - wrong / 4;
}
// This exercise’s configured rule only:
netScore(6, 2); // 5.5Try it yourself
For the stated rule, what net should 8 correct, 4 wrong and 3 blank produce, and what assumption matters?
Show a worked solution
The net is 8 − 4/4 = 7. The assumption is that this exam uses the stated one-quarter penalty and blanks contribute no penalty. The arithmetic is not proof that every exam uses that rule or that timeout handling works.

Chapter 4 · Learn from real projects
a2sv.org: improve an existing site without rebuilding it
Existing products bring working content and behavior that a new feature must respect.
Explanation, worked example and practice
Understand the idea
a2sv.org is different from the new projects: it existed before this AI development work. In my earlier lesson I used it to demonstrate changing an existing site rather than starting from an empty folder.
For an existing site, first understand the visitor journey and the files that control it. Keep approved content, branding and working destinations. A focused change can improve the experience without replacing the whole product.
Worked example
Suppose a prospective applicant cannot find program requirements. First inspect the existing navigation and requirements page; then ask the assistant for one clearer path while preserving the approved requirements text and application link. Follow that path as a new visitor and check the old useful entry points still work.
This is a teaching adaptation of existing-site work, not a claim that the historical live demonstration made this exact patch. The transferable decision is to inspect, preserve and improve a real product instead of generating a replacement in isolation.
Try it yourself
You will improve navigation on an existing nonprofit site. Write a first request that inspects the current program page and links without changing them, so you can choose a focused improvement afterward.
Show a worked solution
“Do not edit yet. Inspect the current program page and navigation. Explain how an applicant reaches the requirements and application link, which files control that path, and which working destinations must be preserved.” This starts from the existing system rather than generating a replacement.

Chapter 5 · Handle larger changes and failures
Break a larger feature into reviewable steps
Use a sequence where each result can teach you what to request next.
Explanation, worked example and practice
Understand the idea
The original lesson grows from a visible page toward capabilities such as saved progress and tutoring. Keep that progression, but do not bundle several systems into a single untestable request.
For a learning product, start with module cards, then opening one lesson, then recording one completion, then accounts if cross-device private progress is needed. Each step introduces a new behavior and its own failure questions.
Worked example
“Add the whole learning platform” hides many decisions. “Open one lesson from its module card and let me return to the same module” gives you a complete small path. Define that path before choosing a database or authentication provider.
Try it yourself
Split housing favorites into two small increments: first a temporary selection on the page, then a selection that survives reload. Give one check for each.
Show a worked solution
Step 1: let a visitor mark and unmark a listing on the current page; check that the icon toggles and only the chosen listing changes. Step 2: implement the intended persistence; save a listing, reload, and check that it is still present. Do not promise cross-device storage unless that has also been implemented.

Chapter 5 · Handle larger changes and failures
Use parallel agents for independent work
Parallelism helps when tasks have clear boundaries and someone integrates the results.
Explanation, worked example and practice
Understand the idea
Different agents can inspect separate concerns or work on independent files. They can also overwrite shared work, disagree about an interface or repeat the same mistaken assumption.
Keep one owner for integration. Define inputs, outputs and shared rules; compare the final combined result. Independent reviews can improve confidence, but several fluent approvals do not replace real checks.
Worked example
For a concrete two-person split, agree that .project-card and data-category stay stable. One assistant may edit the supplied project text in HTML; another may adjust card spacing in CSS. Ask each to name its intended files and avoid changing the shared selectors. One person then integrates the changes and checks all three cards, category filtering and phone layout.
For reviews, the boundary can be simpler: one reviewer checks meaning while another checks mobile readability. Translating separate language files also becomes independent once the source is stable. In every case, compare the combined artifact rather than collecting separate “done” messages.
Try it yourself
You have two assistants: one will update project descriptions in HTML, the other will adjust card spacing in CSS. Assign their file ownership, name one shared selector/category rule to preserve, and give one combined check.
Show a worked solution
Assistant A edits project text in index.html; B edits spacing in styles.css. Both preserve .project-card and data-category so filtering still finds the same cards. One integrator then checks the three descriptions, mobile spacing and All/Web/Data/All behavior together.

Chapter 5 · Handle larger changes and failures
Prepare the next conversation with useful context
A handover should let another assistant continue from the current state.
Explanation, worked example and practice
Understand the idea
Give the project’s purpose, relevant files, completed behavior, current problem and checks still needed. Keep notes short enough to remain useful and update them after meaningful changes.
Rules in AGENTS.md, CLAUDE.md or another supported file have tool-specific scope. Confirm which instructions the assistant actually loaded. Never use these files as a place for passwords or account tokens.
Worked example
For our portfolio: “Three cards exist; All/Web/Data filter works. Contact composes to a placeholder address. Current task: add accessible project details. Read the HTML and app.js, preserve filter state, and check keyboard use.” PROJECT-NOTES.md is a blank template you can fill with your actual results.
Try it yourself
Old notes say “two project cards, HTML/CSS only.” The current source contains three project cards and loads app.js for the filter. You have inspected those files, but have not tried the page. Write a replacement handover naming the current files/state, correcting the stale note and specifying the first browser check.
Show a worked solution
“Current files: index.html, styles.css and app.js. Source inspection shows three cards and a category filter; the old two-card/no-script note is stale. Browser behavior has not been checked. First open index.html and compare the visible titles through All → Web → Data → All with the three known project categories.” Reading the source establishes its contents, not a passing browser check.

Chapter 5 · Handle larger changes and failures
Change your approach when the conversation stalls
Repeated failure should lead to a smaller question and better evidence.
Explanation, worked example and practice
Understand the idea
If “fix it” produces three redesigns but the problem remains, narrow the task. Give one action, the exact observed result, the expected result and the smallest relevant file or screenshot.
Ask the assistant to explain a hypothesis before making another broad edit. A new conversation can help when context has become confused, but carry forward the useful facts and failed attempts.
Worked example
Instead of “the filter still fails,” say: “Start with All. Select Data, then All. The count returns to 3 but only Study hours is visible. Inspect visibility updates in 04-filter/app.js; preserve the card data.” This separates a displayed count from actual card visibility.
Try it yourself
After Data → All, the counter says 3 but only Study hours is visible. The assistant keeps changing colors. Write feedback that directs it to this exact functional failure.
Show a worked solution
“Reproduce Data → All. Expected: all three project titles visible and count 3. Observed: count 3 but only Study hours visible. Inspect the visibility updates in app.js; preserve the colors and current card data. Explain the cause before making another broad edit.”

Chapter 5 · Handle larger changes and failures
Debug the cause, not just the error message
A missing value needs a product decision as well as a code guard.
Explanation, worked example and practice
Understand the idea
The original debugging example fails when a prediction market has no trades yet. A property access such as trade.price can fail when no trade exists. The exception tells you where an assumption broke, not what the user should see.
Decide the empty-market behavior: for example, display “No trades yet” and use an explicitly defined starting quote if the product supports one. Do not silently invent a zero price to make the exception disappear.
Worked example
Illustrative follow-up: “Opening a market with no trades raises Cannot read properties of undefined. Keep ordinary markets working. Explain the empty state and where any initial quote comes from; do not treat absence of a trade as a free item.”
Try it yourself
Why is replacing every missing trade price with zero potentially wrong?
Show a worked solution
Zero is a real price, not simply the absence of data. It can mislead the user or affect transactions. Define the intended empty-state and pricing rule, then check both an empty market and one with a known trade.

Chapter 5 · Handle larger changes and failures
Follow a feature across the files it affects
A coherent multi-file change still needs a coherent end-to-end check.
Explanation, worked example and practice
Understand the idea
A saved-listings feature may involve a card button, a favorites page, a persistence layer and authorization. An assistant can edit all those parts, but its edits are not automatically atomic or correct.
Define the interface between parts and the complete visitor action. For private saved data, the server must enforce ownership; hiding another user’s link in the interface is not sufficient.
Worked example
Make the interfaces explicit. The card sends a listing ID; the server identifies the signed-in user; the saved record belongs to that user and listing; the Favorites page reads that user’s records. A response should let the interface show the confirmed saved state and count. Do not trust a user ID supplied by the browser as authorization.
Then describe the journey: “Save listing L17, find it on Favorites, reload and remove it. A different user must not read the saved record.” A duplicate save should not create duplicate records, and a failed save should not leave a false success state. This is a larger product example, not functionality in our static portfolio.
Try it yourself
User A saves listing L17 and reloads; User B must not see A’s saved record. Write one check sequence covering persistence, removal and separation between users.
Show a worked solution
As A, save L17, open Favorites and reload: L17 should remain. As B, check that A’s private saved record is not exposed. Return to A, remove L17 and check that it stays removed after reload. The server must enforce ownership; a hidden button alone is not that check.

Chapter 5 · Handle larger changes and failures
Add automation after you know what to check
A test should encode an independently understood result, not repeat the implementation’s guess.
Explanation, worked example and practice
Understand the idea
Manual checks help you discover useful expectations. Automation makes selected checks repeatable. It does not replace deciding what matters, nor does passing one test cover every state.
For the filter, expected counts come from the three known projects. A test that reads its expected count from the interface would simply agree with the interface, even when both are wrong.
Worked example
A useful browser check selects Web and expects exactly Weather sketch and Reading journal to be visible, then selects All and expects all three. Checking only a count label can miss hidden cards. Optional maintainer tests for the supplied workshop inspect actual visibility too; running them is not required to begin this lesson.
Try it yourself
All should show Weather sketch, Reading journal and Study hours. The count says 3 but two cards remain hidden. State what an automated check should compare with the expected result.
Show a worked solution
Compare the actual visible card titles with the expected set of all three projects, and check the displayed count as well. Do not derive the expected set from whatever the interface currently displays. Otherwise a wrong count and wrong visibility could agree and pass.

Chapter 5 · Handle larger changes and failures
Prepare deliberately before publishing
A local success is a candidate for release, not an automatic instruction to upload.
Explanation, worked example and practice
Understand the idea
Remove fictional biography and placeholder contact details from your real site. Check links, phone layout, keyboard use and the files being published. Keep private notes and credentials out of the public folder.
Then choose a hosting route and follow its current setup. Accounts, plan limits and domain configuration are separate decisions. For a shared project, agree who may publish and follow the project’s release permissions.
Worked example
For a static portfolio, the public output is the website’s HTML, CSS, JavaScript and intended assets. An account key does not belong in browser JavaScript, even if the assistant says a form needs it. A real sending service needs an appropriate server-side design.
Try it yourself
Before sharing the fictional Alex checkpoint as your own site, name three changes or checks you must make.
Show a worked solution
Replace Alex’s biography and project claims with your own public facts; replace the sample contact with your intended address and inspect its destination; review the files you will publish so only intended public site files are included. The example is a starting artifact, not your identity or execution evidence.

Chapter 5 · Handle larger changes and failures
Observe whether the result helps the visitor
A correct implementation can still leave the original need unmet.
Explanation, worked example and practice
Understand the idea
After sharing an approved site, watch someone try the task you built it for. Can they explain your work, choose a project and find contact? Their hesitation can reveal a problem your own familiarity hides.
Technical counters answer narrower questions. An opening count is not unique people, completed learning or proof that anyone understood the content. Use measurements that match the decision you are making.
Worked example
If visitors open your page but cannot describe your role in a project, a larger view counter does not solve the issue. Ask them what the card communicates, revise the wording, and repeat that small observation with another reader.
Try it yourself
Does a rising page-opening count prove that visitors understand your projects?
Show a worked solution
No. It measures openings under that counter’s definition. Understanding requires evidence such as a visitor accurately describing your role and result. Use the count for reach and a suitable observation for comprehension.

Chapter 5 · Handle larger changes and failures
Use your judgment to decide what deserves building
AI can generate options; you still choose the problem, priority and quality bar.
Explanation, worked example and practice
Understand the idea
The leverage I get from agents comes from deciding what to build and steering the result. Vision, empathy, judgment and taste become practical tasks: notice a real problem, choose the next useful change and reject output that does not help.
I want you to keep learning the fundamentals. They help you detect a misleading answer and ask a better question. Use the assistant to explore alternatives and challenge your reasoning, then make a decision you can explain.
Worked example
An animated hero may be attractive. If it obscures your introduction or delays finding the projects, it conflicts with this portfolio’s purpose. Ask for two alternatives and compare them through the visitor’s task, not only the agent’s enthusiasm.
Try it yourself
A visitor finds your project card but cannot tell what you contributed. Would you prioritize a hero animation or a clearer contribution paragraph in this situation? Explain the connection to the observed problem.
Show a worked solution
Prioritize the contribution paragraph because it directly answers the visitor’s missing information. An animation may serve another goal, but it does not by itself explain your role. After changing the description, ask the visitor to explain your contribution again.

Chapter 6 · Finish your own useful result
Keep a simple development rhythm
Describe, build, try, explain the mismatch, correct, and preserve the working result.
Explanation, worked example and practice
Understand the idea
We used that rhythm for a first page, project cards, a broken link and a filter. The same method can guide a larger product, with stronger review as the consequences grow.
Keep the useful heart of the original lesson: think about behavior, start small and iterate. Add what experience demands: read relevant changes, protect private data, verify failures and state what you have actually checked.
Worked example
A checkpoint is a good place to pause and ask: what can a visitor now do, what evidence supports that, and what is still missing? You can answer those questions without memorizing every command or becoming dependent on one provider.
Try it yourself
Choose one small change for your own site. Write a four-step development plan: the request, what you will inspect, what you will do if the result differs, and when you will save the working version. If you are using the supplied example, name that route.
Show a worked solution
Example plan for my own site: request a My contribution paragraph on one project using my supplied facts; open that card at wide and phone widths and read the new paragraph; if it omits my role, send the exact mismatch and request that correction only; save the complete working files after rechecking the paragraph and existing card behavior. This is a plan, not a report that those checks ran.

Chapter 6 · Finish your own useful result
Try a new interaction without a complete answer to copy
Use the method on a feature whose implementation is yours to direct.
Explanation, worked example and practice
Understand the idea
Add a Details control to each project on your own site. It should reveal your role, one decision and one result for that project. Use truthful content; fictional practice data must remain labeled.
Choose the interaction deliberately. A built-in details element is one option, but you can accept another accessible approach if it meets your requirements. Preserve the category filter and contact behavior.
Worked example
Define the expected initial state and what activation does. Decide whether opening one project closes another. Ask your assistant to implement one chosen behavior, then test a second project, keyboard use and filtering after a detail is open. No finished implementation is supplied for this transfer task.
Try it yourself
Write a request for project Details controls. Specify what opens, the initial state, whether several projects may stay open, keyboard operation, and preservation of the filter and contact. Then give two acceptance checks.
Show a worked solution
One valid request: “Each project gets a Details control revealing my supplied role, decision and result. Start closed; allow several projects to remain open. Make it keyboard-operable and preserve filtering and contact.” Other explicit, accessible open/close rules can also be valid.
Checks: open one project using the keyboard and read its own details; then open another and use the category filter to confirm the chosen open/close behavior and existing content still work. The implementation is yours to direct, not a supplied complete solution.

Chapter 6 · Finish your own useful result
Build something real in small increments
Finish a modest portfolio that someone else can understand and use.
Explanation, worked example and practice
Understand the idea
First create your own introduction and one project. Next add two useful improvements one at a time, such as more project cards, a correct contact link, filtering or the details interaction. Check and preserve each working step.
For your submission, provide the complete files or a deliberately published URL, your short brief, the changes you requested, one correction you made and the checks you actually performed. If you used only the read-through route, label it and identify the hands-on step you will try next.
Worked example
A strong submission is not “the AI built a site.” It lets another person open the result, identify your contribution and follow one request → observation → correction sequence. A small honest result is more useful than an impressive unfinished feature list.
Try it yourself
Prepare a four-part submission outline for your own site: the artifact, initial brief, one correction conversation, and actual check results. If you have not built it yet, label the outline as a plan.
Show a worked solution
Artifact: the complete website folder or a deliberately published URL. Brief: intended visitor, supplied content and first-version scope.
Correction: one observed mismatch, your focused follow-up and what changed. Checks: actions you actually tried, their outcomes and anything still unverified. If this is a plan, use future tense rather than reporting the reference example as your own completed work.

Chapter 6 · Finish your own useful result
Use references to answer a specific question
Documentation is most useful when you know what you need to decide.
Explanation, worked example and practice
Understand the idea
Use the chosen assistant’s official setup and authentication guide for account or installation questions. Use HTML/CSS/JavaScript references for browser behavior and Git documentation for local history.
The workshop supplies SAMPLE-BRIEF.txt, PROMPTS-en.txt, README-en.txt and complete checkpoints. Read the stage description before copying files. It is a fallback and comparison tool, not a replacement for defining your own website’s content.
Worked example
If your question is whether mailto sends a message automatically, read the link reference rather than debugging CSS. If your question is why a filter handler does not run, inspect the script path and console before reinstalling every tool.
Try it yourself
Choose one obstacle: the CSS does not appear, or your assistant cannot sign in. Name the first file or official source you would inspect and explain why.
Show a worked solution
For missing CSS, first inspect the stylesheet href in index.html and whether styles.css exists at that path. For sign-in failure, use the chosen tool’s official authentication/setup guide and exact error. Pick the source that answers the particular uncertainty instead of reinstalling unrelated tools.

Chapter 6 · Finish your own useful result
Leave a handover another person can use
Explain the current result, how to open it and what still needs attention.
Explanation, worked example and practice
Understand the idea
List the relevant files, the current capabilities and the checks you ran. Include a known limitation or unfinished item when one exists. That makes the next change easier and prevents a future assistant from “fixing” a deliberate decision.
Write the handover from your actual work, not from the reference answer. If you have not run a check or deployed the site, say that. A readable handover is part of finishing the feature.
Worked example
Example format: “Static portfolio; open index.html with styles.css and app.js beside it. Three project cards; All/Web/Data filter. Checked [your actual actions and outcomes]. Not checked: [remaining items]. Next task: [one useful improvement].” Fill the brackets with observations rather than invented results.
Try it yourself
Use your own site or explicitly choose the supplied read-through route. Write a four-line handover: the exact artifact and how to open it; what it currently contains and what you actually checked; one decision the next person should preserve and why; the next unfinished action. Separate observed results, source inspection and plans.
Show a worked solution
Read-through example: “Artifact: supplied 04-filter folder; open index.html with styles.css and app.js beside it. State: the source defines Weather sketch, Reading journal and Study hours with All/Web/Data filtering; I have read the files, not tested browser behavior. Decision: preserve .project-card and data-category because the filter uses them to identify cards. Next: open the page and check Web → All against the expected titles.” For your own site, replace all four lines with its actual artifact, evidence and decision.

Chapter 6 · Finish your own useful result
Build, learn, and keep your own judgment
You now have a way to turn an idea into a result you can inspect and improve.
Explanation, worked example and practice
Understand the idea
What I want you to take away is a method you can use: describe a useful result, get a version you can open, find a concrete gap and improve it. Your website and your understanding should grow together.
Build something real, however small. Show it to someone, listen to what they cannot understand or use, and make the next change. Keep your own judgment while the assistant helps with the implementation.
Worked example
Before moving on, open your site and explain one project, one change and one remaining limitation to another person. If you cannot yet do that, return to the earliest unclear step rather than adding another feature.
Try it yourself
Choose one small next action for your own website. Name the affected part and the result you will look for afterward.
Show a worked solution
For example: “Add a My contribution paragraph to Reading journal using my supplied facts. Then ask a visitor to explain my role from that card.” The action is bounded and its result can be inspected. Another concrete improvement for your visitor is equally valid.
Quote of the day
We can only see a short distance ahead, but we can see plenty there that needs to be done.
Was this lesson useful?
Leave a like, or share it with someone who could use it.
Hear about new articles and lessons