Boilerplate code
Definition
A code skeleton provides reusable starter files for a new development project.
Boilerplate is prepared code for frequently recurring basic structures. For example, a web project can adopt HTML files, CSS basics, and configurations with it. Project-specific functions, content, and settings must then be appropriately added.
Simply explained
You start with a prepared workbench but still have to build your actual workpiece yourself.
Why it matters in practice
A suitable skeleton saves recurring setup steps and facilitates uniform project structures within the team.
Example from business
Possible example: A team starts a small website with HTML5 Boilerplate and replaces title, content, and styling.
Limits and pitfalls
- Outdated dependencies and unnecessary functions are easily copied along. An existing skeleton is not proof of adequate security or accessibility.
Origin & history
Skeletons transfer recurring development work into templates; they are to be distinguished from finished applications and individual code snippets.
Use in mid-sized companies
- Before adoption, an organization checks maintenance status, license, and required functions and removes unused components.
Frequently asked questions
Is boilerplate a framework?
Not necessarily. It can be just a file template; a framework additionally provides runtime functions and development structures.
Sources
- HTML5 Boilerplate. · HTML5 Boilerplate (o. J.): HTML5 Boilerplate.
Editorially reviewed on: