boilerplate
in English: boilerplate code
Boilerplate is a recurring, almost unchanged code snippet that must be written into many programs and in many places for the program to work, even though the actual, unique work is not in this.
In plain terms
Think of an official letter: header, date, salutation, "Sincerely," signature. Without these, it is not a letter, but the message is not in them. In programming, this mandatory framework is called boilerplate, or template code in Hungarian.
Most programs start with the same steps: setting up the environment, loading necessary tools, often connecting to a database, and handling errors. This code changes little from project to project, yet it must be present.
Boilerplate code is not a bug in itself, but routine work required by a given language or framework. It is discussed so much because it is tedious, time-consuming, and easy to make careless mistakes in. That is why it was one of the first tasks developers handed over, first to AI code assistants and then to coding agents.
How it works
- The programming language or framework mandates a required structure: without certain lines and files, the program will not start.
- In the past, developers wrote this skeleton by hand or copied it from an earlier project.
- Templates and code generators later emerged, creating a full starter project with a single command.
- Today, an AI agent increasingly writes the template code: you tell it what you are building, and it creates the framework tailored to your project.
- The developer then reviews the draft and focuses their time on the part that makes the program unique.
An everyday example
When creating a webshop, the project configuration files, database connection, login, and form validation basics look almost the same in the background of every store. If you read that a coding agent "assembled the application skeleton in minutes," it largely wrote this template code.
Who is affected
A common misconception
Limits and risks
- The generated template code must also be read: a misconfigured security or database component error can silently be incorporated into the program.
- A scaffold copied from another project or generated from old templates may bring outdated solutions and vulnerable components.
- The more boilerplate code there is, the more lines must be maintained later, even if writing them cost nothing.
- The fact that an agent quickly drafts an outline does not mean it will complete the program's unique, difficult parts just as fast.
Similar, but not the same
- keretrendszer – The framework is a ready-to-use, reusable toolkit. Boilerplate is the mandatory, repetitive code you must write to use a framework, though it can occur even without one.
- sablon (template) – A template is a pre-prepared starting pattern from which template code is created, while boilerplate is the repetitive code that ends up in your program.
- technical debt – Technical debt is the burden of hasty decisions that later exact a price, while boilerplate code is regular, just repetitive code. It becomes debt when copied to many places and accumulates without maintenance.
Related concepts
source code, software development
project scaffolding, starter template
keretrendszer, code generation, coding agent, vibe coding, technical debt
A brief history
The word originates from printing: at the end of the 19th century, American newspapers sent texts that could be published without changes on ready-made printing plates, and these plates resembled the steel plates of boilers. From here, it passed first to the permanent formulas of legal texts, then to programming.
Where things stand
The term is a long-established part of developer jargon. In late 2026, writing boilerplate code is one of the most common tasks for coding agents, so the developer's job here is increasingly review.
Also known as
boilerplate · boilerplate code · boilerplate code · boilerplate code · template text · boilerplate text · scaffolding code · scaffold code
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.