LLMs, explained for developers
2 min readAI · LLM · Guides0 views
You've used an LLM to write code, draft an email, or explain a concept — but what IS it, really? Strip away the mystique: a large language model is a giant pattern machine trained to predict the next token in a sequence of text. Everything else — the fluency, the reasoning, the jokes, the mistakes — is a side effect of doing that one thing at enormous scale.
The minimal mental model
- Tokens — text is chopped into small pieces (words, subwords); 'understanding' happens over these, not over letters or whole words.
- Attention — every token weighs every other token to decide what context matters right now. That's the whole cleverness — no memories of 'facts', just context computed on the fly.
- Training vs inference — training (learning from a giant corpus) happens once, offline. Inference (answering you) is just prediction, one token at a time, from the weights frozen in place.
- Context window — the model can only 'see' so much at once. Stuff outside the window, or lost inside it, is gone for that turn.
- RLHF — after pretraining, humans rank outputs so the model learns what 'good answer' looks like — helpful, honest, not insane.
What LLMs are genuinely good at
- Drafting and reworking — emails, docs, READMEs, first-pass code from a spec.
- Synthesis — summarizing a codebase, a paper, a thread of 40 comments.
- Language→structure — 'turn this into a JSON schema', 'write the SQL for this question'.
- The patient tutor — infinite patience, zero judgment, instant first answers.
Where they fail — honestly
- Hallucination — they will state false things with perfect fluency. Confidence is not accuracy. Every claim that matters needs verification.
- No real-time knowledge — everything stops at a training cutoff; tools and retrieval exist precisely because of this.
- Shallow 'reasoning' — chain-of-thought helps, but it's structured prediction, not thinking. Math and edge cases still trip them up.
- Context drift — in long sessions, early instructions quietly lose influence. What was important at message 1 may be background by message 30.
How I actually use them
As an agent multiplier. I give the model a clear spec, constraints, and the honest success criteria up front — then I review everything it writes like I would a junior engineer's PR: by reading the diff, running the checks, and questioning the confident parts hardest. That's the whole discipline. The model accelerates the typing; the judgment stays mine.
If you remember one thing: treat an LLM like a brilliant, tireless intern who has never seen your codebase, lies smoothly when unsure, and has no bad days. Supervise, verify, ship.

Written by
Shihab Hossain — Full-Stack Developer
I build fast, thoughtful products end-to-end — web experiences with React & Next.js, Android apps with Flutter, and the infrastructure behind them.
Work with me