Types of code

The different types of code that are architecturally relevant. The idea is that every line of code falls in one of these categories. In a simple project all kinds are used in the same functions, files, and modules. A medium sized project could profit from separating some of these types in separate classes or layers. A large project can seriously benefit from separating all of them.

Business Logic

Domain Logic

Application Logic

Use cases

User Interface

Presentation Logic

View Logic

Data Access Logic