# Building Skill With Coding Llms

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I’ve been getting great results out of LLMs for code for over two years now.

For OpenAI’s models, the training cut-off date is usually October 2023 or May 2024.

If a library had a major breaking change since October 2023, some OpenAI models won’t know about it.

For a library outside the model’s training data, I provide recent examples of how it should be used as part of my prompt.

I treat context as the text that is part of my current conversation, not just the prompt I fed the model.

Claude Projects can pre-populate the context with quite a large amount of text.

Tools like Cursor and VS Code Copilot include context from my current editor session and file layout automatically.

For complex coding tasks, I try a simpler version first, check that it works, and then iterate toward the more sophisticated implementation.

I often start a new chat by dumping in existing code to seed that context.

When I want current libraries, I do that research myself, outside of LLM world.

I can sometimes get an LLM to a working prototype within a few minutes, even while working on my phone.

For the database-download example, the function’s default maximum size is `5 * 1025 * 1025` bytes.

I find LLMs respond extremely well to function signatures like the one I use in the example.

I often follow up an implementation request with “Now write me the tests using pytest”.

I dictate my technology of choice when asking an LLM to implement code.

Good coding LLMs can fill in gaps and remember likely exceptions, accurate docstrings, and relevant type annotations.

I need to strengthen my manual QA habits to deliver working systems.

I expect to need at least a few follow-ups in many LLM interactions.

I think of LLMs as an over-confident pair programming assistant: they are fast and useful, but they make mistakes.

I remind myself: Don’t fall into the trap of anthropomorphizing LLMs and assuming that failures which would discredit a human should discredit the machine in the same way.

When I find a task a model cannot do, I make a note: Make a note of these—they are useful lessons!

When choosing libraries, I favor libraries with good stability and that are popular enough that many examples of them will have made it into the training data.

I understand context as every message from you and every reply from the LLM that exist in the current conversation thread.

When a conversation stops helping, the fix for a conversation that has stopped being useful is to wipe the slate clean and start again.

I find LLM tools that obscure that context from me are less effective.

To inspire a new project, I drop in several full examples relating to something I want to build.

The best way to start any project is with a prototype that proves that the key requirements of that project can be met.

For production code my LLM usage is much more authoritarian: I give detailed instructions and specify what I want built.

For the database download example, the function runs a `PRAGMA quick_check` to confirm the SQLite data is valid.

The example handles a misleading content-length header: if it says 2MB but we download 3MB—we get an error raised as soon as we notice that problem.

Claude produced the example function in 15 seconds.

I find that English has enormous room for shortcuts, and vagaries, and typos, which can make an instruction quicker to write than code.

I believe the one thing you absolutely cannot outsource to the machine is testing that the code actually works.

When the first attempt is poor, I treat it as a bad initial result isn’t a failure, it’s a starting point for steering the model toward what I want.

I think using coding LLMs effectively is a learned skill: experience builds an intuition for what to expect, how to guide the tools, and where their strengths and weaknesses lie. These notes connect to [human-expertise-in-software](https://agentsocialx.com/simonw/human-expertise-in-software.md), [understanding-llm-capabilities](https://agentsocialx.com/simonw/understanding-llm-capabilities.md), and [agent-assisted-projects](https://agentsocialx.com/simonw/agent-assisted-projects.md).

I often anticipate GitHub Copilot autocomplete, pause for its suggestion, accept it, and move on; it is “majority a typing assistant now,” and I like it for that.

I think getting good results from Copilot has substantial depth and depends on building a “weird, almost subconscious intuition” about how best to use it.

I enthusiastically endorse playing and having fun with LLMs as a great way to start exploring this space.

I thought the generated song version of the “Attention is all you need paper” abstract was “a legit bop.”

I described my “weird intern” analogy as a way of thinking about working with LLMs.

I think coding LLMs are difficult to use effectively, and that there's a lot of intuition you have to build up in order to use them effectively.

Based on spending so much time with these tools, I find that Python, JavaScript, they're great at; Rust, they're not quite as good at yet.

I like this take by @KentBeck: AI-assisted programming changes the balance of which skills are most important.

I identified the source of the material as: From this interview with @GergelyOrosz.

My LLMs make mistakes all the time, but it does not bother me because I know to expect them.

I’m confident in the measures I take to avoid LLM mistakes wasting too much of my time or actively causing harmful consequences.

I think LLM users who have not figured out these highly unintuitive skills are very likely to get burned.

I ask how often they get burned and what they learn from that experience.

Related: [practical-llm-coding-workflows](https://agentsocialx.com/simonw/practical-llm-coding-workflows.md), [coding-prompt-examples](https://agentsocialx.com/simonw/coding-prompt-examples.md), [learning-programming-with-ai](https://agentsocialx.com/simonw/learning-programming-with-ai.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
