Studio Matrx Monthly · Volume 1 · Issue 3 · August 2026
Amogh N P
 In loving memory of Amogh N P — Architect · Designer · Visionary 
Coding with AI AssistantsLesson 10.3
PSD for Architecture, Planning & Urban Design/Module 10 · Practice, AI-Assisted Coding & Career

Lesson 10.3 · Practice, AI-Assisted Coding & Career

Coding with AI Assistants

AI writes code fast and confidently, including when it is wrong - it is a powerful accelerator for a literate designer and a trap for one who cannot read the answer

13 min Interactive lessonFree · open lessonByAmogh N P· Architect & interior designer
The hook

An AI assistant will write you fifty lines of confident Python in three seconds. Whether those lines are right is entirely your job to decide.

AI coding assistants - ChatGPT, Claude, GitHub Copilot and their kin - are the biggest change to how people write code in a generation. Used well, they turn a designer with the fundamentals into someone who moves twice as fast, unblocks in seconds, and learns from every answer. Used badly, they pour confident, plausible, subtly wrong code into a project by someone who cannot tell.

The difference is not the tool. It is the person. AI amplifies whoever is holding it - a literate coder who can read, run and verify an answer, or one who pastes it and hopes. This lesson is about being the first kind: prompting well, verifying always, and treating the assistant as a fast, tireless, occasionally-wrong junior who needs your judgement.

Brief it like a junior. Read, run, verify. AI amplifies whoever holds it.

What these tools are, and where they help most

Broadly there are two shapes of AI coding help. Chat assistants (ChatGPT, Claude and others) are a conversation: you describe a problem in plain language and they reply with code and an explanation, which you copy into your editor. In-editor assistants (GitHub Copilot most famously) live inside VS Code and suggest code as you type, completing lines and whole functions from the context around your cursor. Both are built on large language models trained on vast amounts of text and code; both are astonishingly fluent and genuinely useful.

They shine at a predictable set of jobs. They are excellent at boilerplate and syntax you forget - the exact spelling of a pandas group-by, how to open a file safely, the shape of a matplotlib chart. They are superb at explaining - paste a traceback or an unfamiliar snippet and ask 'what does this do and why is it failing?' and you get a patient, tailored answer, which makes them a remarkable learning tool. They give you a first draft to react to, which is often easier than a blank page. And they are quick at routine data-wrangling and translating an idea between libraries. For a designer, that covers a huge share of real scripting. Where they get shakier is anything needing correctness you cannot easily check, current API details, or knowledge of your specific project and data - which is exactly where verification comes in. It helps to hold a simple mental model: these tools predict likely text, so they are strongest where the answer is common and well-documented, and weakest where it is niche, recent, or specific to you. That is why they nail a standard pandas operation and stumble on the exact argument a fast-moving plugin API added last month.

WORKING WITH AN AI ASSISTANTASK CLEARLYtask + inputs + outputREAD ITunderstand every lineRUN & VERIFYtest on real dataKEEP ITcorrect + understoodREFINEtell it what was wrongworkswrongThe AI drafts; YOU read, verify and decide. Never paste code you have not understood.
Zoom
The working loop with an AI assistant: ask clearly (task, inputs, output), read every line, then run and verify on real data. If it works and you understand it, keep it; if it is wrong, tell the assistant what broke and refine. The AI drafts - you read, verify and decide.

Two kinds: chat (describe -> code) and in-editor (Copilot completes as you type).

Prompt like you are briefing a junior

The quality of what you get back tracks closely with the quality of what you ask. A vague prompt ('write code to sort rooms') gets a vague, generic answer. A good prompt reads like a clear brief to a capable junior: the task, the inputs and their shape, the desired output, and any constraints. Compare 'sort my rooms' with something specific:

I have a Python list of tuples like
[("living", 24.0), ("kitchen", 12.5)] -- (name, area in sqm).
Write a function that returns the names of rooms over 15 sqm,
sorted largest first. Plain standard library, no pandas.

That prompt gets you usable, on-target code because you removed the guesswork. Give it a real example of your data, say what libraries you want (or want to avoid), and state the edge cases you care about ('some areas may be missing'). If the first answer is close but wrong, do not start over - refine in conversation: 'good, but it crashes when an area is None - handle that' gets a targeted fix. Ask it to explain its own code line by line when you do not follow something; that turns every request into a lesson. And keep requests focused - asking for one well-defined function you can verify beats asking for a whole program you cannot. The skill of describing a problem precisely, it turns out, is the same skill that makes you a better programmer regardless of AI.

Good prompt = task + example inputs + desired output + constraints. Refine, do not restart.

Read it, run it, verify it - always

Here is the rule that separates the accelerated designer from the endangered one: never use code you have not read and understood. AI models produce text that is plausible, which is not the same as correct. They will confidently invent functions that do not exist, call an API the way it worked three versions ago, get units or edge cases subtly wrong, and present all of it in the same self-assured tone as their best work. This is often called hallucination, and it is not a rare glitch - it is a fundamental property of how these tools work.

So treat every answer as a draft from a fast junior, not gospel. Read each line and ask 'do I understand what this does?' If not, ask the assistant to explain it - or do not use it. Then run it on real data and check the result yourself: does the total match a schedule you totalled by hand? Does it behave on an empty list, a missing value, a room of exactly 15 sqm? A worked verification looks like this:

python
def big_rooms(rooms):
    return sorted([n for n, a in rooms if a > 15], key=lambda n: -dict(rooms)[n])

test = [("living", 24.0), ("kitchen", 12.5), ("study", 15.0)]
print(big_rooms(test))   # check: is 'study' at exactly 15 in or out?

That one test exposes a decision the AI made silently - whether > 15 excludes the 15 sqm study - that you may or may not have wanted. The habit of writing a tiny check like that, on your real inputs, is your entire defence against confident nonsense. It is also why the fundamentals in this course matter more in the AI era, not less: you cannot verify what you cannot read.

TRUST, BUT VERIFYGOOD ATboilerplate and syntax you forgetexplaining an error messagea first draft to react totranslating between librariesroutine data-wrangling codeYOU MUST CHECKinvented functions that do not existconfident but wrong logicoutdated or unsafe API callsunits, edge cases, empty inputswhether it fits YOUR projectAn accelerator for someone who can read code; a source of confident mistakes for someone who cannot.
Zoom
Trust but verify: AI assistants are genuinely good at boilerplate, explanation, first drafts and routine data code - but you must check for invented functions, confidently wrong logic, outdated APIs, mishandled edge cases and whether the answer even fits your project. An accelerator for someone who can read code; a source of confident mistakes for someone who cannot.

An accelerator for the literate, honestly

Put the pieces together and the honest picture is neither hype nor doom. AI assistants are a genuine accelerator - for a designer who has the fundamentals. If you can read Python, describe a problem precisely, run a quick test and spot when an answer is wrong, these tools let you work faster, get unstuck instantly, and learn continuously by asking 'why' about every snippet. They are especially kind to designers, because our scripts are usually small and verifiable - exactly the sweet spot where a fast draft plus a quick check wins.

But they do not remove the need to learn, and anyone selling that is wrong. An assistant is a source of confident mistakes for someone who cannot read the answer, and leaning on it without understanding builds a fragile dependence that collapses the moment the code needs debugging - which it always eventually does. There are also real limits to respect: do not paste confidential client data or secrets into a third-party tool without knowing its policy; do not assume its knowledge of a fast-moving library API is current; and remember it knows nothing about your project beyond what you tell it. Used with those eyes open, an AI assistant is one of the best things ever to happen to a self-taught designer-coder. Used as a substitute for understanding, it is a trap wearing a helpful smile. This whole course exists to make you the person who can tell the difference.

AI amplifies whoever holds it. Fundamentals are more valuable in the AI era, not less.

Learn from it, do not just lean on it

The most valuable way a designer can use an AI assistant while still building skill is as a patient tutor, not just a code vending machine. Every answer it gives is a chance to learn something, if you ask. When it hands you a snippet, ask it to explain the parts you do not follow: 'what does the key=lambda bit do here?' or 'why did you use a dictionary instead of a list?' You get a tailored explanation exactly at your level, on the exact code in front of you - a kind of on-demand teaching that no book can match.

Push further and it teaches faster still. Ask for two different approaches to the same problem and to compare their trade-offs - you learn that there is rarely one right answer, and you start to develop taste. Paste your own code and ask 'how would you make this clearer?' or 'what edge cases am I missing?' - a gentle, private code review that sharpens the habits from Lesson 10.1. Ask it to translate an idea between libraries you know and ones you do not, and you learn the new one by seeing it beside the familiar.

The distinction that matters is between leaning and learning. Leaning is pasting code you do not understand because it seems to work; it feels productive and quietly leaves you helpless the moment the code needs fixing. Learning is using the assistant to understand, so that next time you could write it yourself. A simple test keeps you honest: for any snippet you keep, could you re-create it, given time, without the AI? If yes, you have learned. If no, you have borrowed - so ask it to explain until you could. Used this way, an assistant compresses months of learning into weeks, precisely because it removes the friction of finding an explanation while keeping you in the driver's seat. The fundamentals still have to end up in your head; the AI just gets them there faster.

Ask it WHY. Ask for two approaches. Test: could I rewrite this myself?

Tools and terms in this lesson

Chat assistant

ChatGPT, Claude - conversational code help

Describe a problem in plain language, get code plus explanation. Best as a first draft and a learning tool; verify before you trust.

GitHub Copilot

In-editor autocomplete for code

Suggests lines and functions as you type in VS Code. Fast for boilerplate; still needs you to read and accept each suggestion.

Hallucination

Confident output that is plausible but wrong

A fundamental property of language models, not a rare bug. Invented functions and outdated APIs look identical to correct code - hence verify.

Prompt

The brief you give the assistant

Task + example inputs + desired output + constraints. A precise prompt is most of a good answer; refine in conversation rather than restarting.

Hands-on workshop

Workshop - use an AI assistant, then catch it out

The goal is to practise the full cycle - prompt, read, run, verify - and to see a confident mistake with your own eyes so you never blindly trust output again. You will ask an assistant for a small function, then deliberately test the edges it may have gotten wrong.

Any AI chat assistant, Python 3, and a text editor. GitHub Copilot in VS Code optional.

Given & goal
Goal: get a verified working function AND find at least one thing the AI got wrong or left ambiguous
Inputs: any chat AI assistant, Python installed
Time: ~30 minutes
  1. 1Write a precise prompt for a real designer task - for example: 'Given a Python list of (roomname, areasqm) tuples where some areas may be the string empty or None, return the total habitable area, treating rooms under 2 sqm as non-habitable. Standard library only.' Include a sample input in the prompt.
  2. 2Read the reply line by line WITHOUT running it. For each line, ask yourself what it does; if any line is unclear, ask the assistant to explain just that line. Do not accept code you cannot narrate.
  3. 3Now run it on the sample you gave - then run it on nastier inputs it may not have handled: an empty list, an area that is None, an area of exactly 2.0, and an area stored as text like '10'. Note which cases break or give a surprising answer.
  4. 4Feed the failing case back: 'it crashes when an area is None - handle that and treat missing areas as zero'. Verify the fix on all your test inputs again. Notice how refining beats restarting.
  5. 5Write two sentences on what the AI got right, and the one edge case it got wrong or decided silently (like whether exactly 2.0 counts). That silent decision is the thing verification exists to catch.

You’ll walk away with
A short verified function, your list of test inputs and their results, and a two-sentence note naming one thing the assistant got wrong or left ambiguous and how your test caught it.

The worked example

Three altitudes on the same idea

Read the band that fits you — or all three.

For the architectAutomate busywork & build custom tools

An AI assistant is a fast junior for the studio's scripting - one you must still review. It will draft the pandas or Dynamo Python you half-remember and explain an inherited script in minutes, which is real time saved. But treat generated code that touches issued output exactly as you would a junior's work: read it, test it on a sample, and never let it run on a live project unverified. And mind confidentiality - check the tool's data policy before pasting a client's model data or a schedule into it.

For the interior designerScripts for data, schedules & layouts

For data-heavy interiors work, AI is brilliant at the code you reach for occasionally and forget between projects - reshaping an FF&E spreadsheet, cleaning a supplier export, drawing a quick chart. Prompt it with a real sample of your data and the output you want, then verify the totals against a schedule you trust. It is the fastest way to get unstuck on a one-off task without becoming a full-time coder, as long as you read what it hands you before you rely on the numbers.

For the studentA hireable computational skill

Used as a tutor, AI is one of the best learning tools you have ever had - used as a crutch, it will quietly hollow out your skills. Ask it to explain every line, to show you two ways to do something, to critique your own code - that accelerates learning enormously. But write and understand code yourself too, because the fundamentals are what let you verify the AI, and they are exactly what the Computational Design, BIM and Generative AI courses in this Academy, and any employer, will test.

Misconception check

AI can write the code now, so there is no real point learning to program myself.

This is the most dangerous myth of the moment, and it gets the relationship exactly backwards. AI assistants amplify whoever is using them: a designer who can read code, describe a problem precisely, run a quick test and recognise a wrong answer gets a genuine accelerator; a designer who cannot gets a firehose of confident, plausible, sometimes-broken code they have no way to judge. Because the models produce text that is likely rather than guaranteed correct, they invent functions, misuse APIs and mishandle edge cases while sounding completely sure - and only a literate user catches it. So the fundamentals matter more in the AI era, not less: they are what turn the tool from a trap into leverage. Learning to code and using AI to code are not alternatives; the first is what makes the second safe.
Try it

Do it yourself

Sharpen your judgement about the tool.

  1. 1Name two tasks AI assistants are genuinely good at for a designer.
  2. 2What four things make a prompt precise enough to get useful code?
  3. 3What does 'hallucination' mean, and why can you not spot it by tone?
  4. 4What is the single rule about using generated code, and why does it depend on the fundamentals?
  5. 5Give one thing you should never paste into a third-party AI tool without checking.
Take this with you

The one line to carry out

AI assistants amplify whoever holds them: brief them precisely, then read, run and verify every answer on your real data - because they produce plausible code, not guaranteed code, and only a designer with the fundamentals can tell the accelerator from the trap.
Take it further
References & further reading

Peer-reviewed journals & authoritative standards

  1. 01GitHub CopilotWikipedia, 2026.
  2. 02Computer programmingWikipedia, 2026.
  3. 03The Python TutorialPython Software Foundation, 2026.
  4. 04DebuggingWikipedia, 2026.
Related lessons
Recap
AI assistants come as chat tools and in-editor autocompletes, and both are genuinely useful for boilerplate, explanation, first drafts and data-wrangling. Prompt them like a junior - task, example inputs, output, constraints - and refine in conversation. But they hallucinate confidently, so never use code you have not read, run and verified on real inputs. They are a real accelerator for a literate designer and a trap for one who cannot read the answer - which is why the fundamentals matter more, not less.
Carry forward →

You now have the full working kit: fundamentals, geometry, data, design-tool scripting, debugging, version control and AI leverage. The last lesson steps back to ask where this skill can take you - the roles, the portfolio and the path of a computational designer.

A

The author

Amogh N P

Architect, interior designer, and creative polymath. Studio Matrx began in his notebooks — his vision of design made honest, useful, and open to everyone. Its Academy is written and taught in his memory, and free, forever.

More about Amogh →