conventionsclassbased
Convention‑based class‑based programming refers to a design paradigm in which the organization, naming, and attributes of classes are governed by a set of implicit rules. Rather than requiring developers to specify configuration details explicitly, the system infers relationships and behavior from the way code is structured. This principle is often applied in web frameworks and large application architectures that follow the Model–View–Controller (MVC) pattern or similar modular designs. The core idea is that following a predictable convention reduces boilerplate, enforces consistency across a codebase, and speeds up development by eliminating repetitive configuration.
The convention‑over‑configuration concept dates back to early object‑oriented programming prototypes, but it gained mainstream prominence with
The mechanics of a convention‑based system typically involve mapping rules such as: a controller class named
Benefits include a lower learning curve for new team members, faster scaffolding of common functionality, and
In contemporary practice, many frameworks adopt a hybrid model, providing convention‑based defaults alongside explicit configuration options.