DEV Community

Architecture

The fundamental structures of a software system.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
Where Input Validation Lives: Controllers, Use Cases, or Domain?

Where Input Validation Lives: Controllers, Use Cases, or Domain?

Comments
10 min read
Authorization in Use Cases, Not Controllers

Authorization in Use Cases, Not Controllers

Comments
8 min read
Pagination: Does It Belong in the Domain or in the Adapter?

Pagination: Does It Belong in the Domain or in the Adapter?

Comments
8 min read
Filament + Hexagonal: Building an Admin Panel Without Coupling Your Domain

Filament + Hexagonal: Building an Admin Panel Without Coupling Your Domain

Comments
8 min read
Enums as State Machines: Modeling Order Status the Right Way in PHP 8.3

Enums as State Machines: Modeling Order Status the Right Way in PHP 8.3

Comments
7 min read
Don't Mock What You Don't Own: The Stripe Adapter Pattern in PHP

Don't Mock What You Don't Own: The Stripe Adapter Pattern in PHP

Comments
10 min read
Pessimistic vs Optimistic Locking in Hexagonal PHP

Pessimistic vs Optimistic Locking in Hexagonal PHP

Comments
9 min read
Why "Manager" Classes Are a Code Smell (And What to Replace Them With)

Why "Manager" Classes Are a Code Smell (And What to Replace Them With)

Comments
8 min read
Unit Tests Are Overrated and You Know It

Unit Tests Are Overrated and You Know It

Comments
9 min read
Tell, Don't Ask: The Rule That Decides Where Your PHP Methods Live

Tell, Don't Ask: The Rule That Decides Where Your PHP Methods Live

Comments
9 min read
Idempotency Keys in PHP: Stop Charging Customers Twice

Idempotency Keys in PHP: Stop Charging Customers Twice

Comments
9 min read
The Saga Pattern in PHP: Long-Running Workflows Without a Workflow Engine

The Saga Pattern in PHP: Long-Running Workflows Without a Workflow Engine

Comments
8 min read
Aggregate Roots: Why Your Entity Needs a Private Constructor in PHP

Aggregate Roots: Why Your Entity Needs a Private Constructor in PHP

Comments
8 min read
Your AI Stack Is Too Big

Your AI Stack Is Too Big

Comments
1 min read
The Outer Ring: Why Your Framework Is Actually Replaceable

The Outer Ring: Why Your Framework Is Actually Replaceable

Comments
9 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.