DELAPARRA
Index
Color
NL
Category: Core glossary

Static

Explained by Updated

What is Static?

Static: Not changing at runtime. A static site is pre-generated HTML/CSS/JS served without a backend. A static variable belongs to the class rather than an instance. Static means something that does not change at runtime. A static website consists of pre-built HTML, CSS and JavaScript files, served as they are, without a server-side application generating each page.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Static

How is Static used in practice?

Static sites are fast, cheap to host and have a very small attack surface. Site generators such as Astro, Hugo and Eleventy build them from content files.

What should you keep in mind with Static?

In programming, a static variable or method belongs to the class itself rather than to an instance. Static methods are fine for small helpers, but static state shared across the whole application behaves like global state, with the same risks. In long-running PHP processes like queue workers or Octane, static properties survive between jobs or requests, so data from one user can leak into another's request if you are not careful.

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with S

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.