Should every Laravel project use DDD? +
No. DDD adds complexity justified by complex business domains. For simple CRUD apps, standard MVC is fine. I apply the right level of architecture for the problem.
What is a DTO and why use it? +
Data Transfer Object — a typed container for data passing between layers. Prevents passing raw arrays, makes contracts explicit, and improves IDE support.
Do you follow all SOLID principles strictly? +
I apply SOLID pragmatically — the goal is maintainable, readable code, not dogmatic rule-following. Some principles apply more than others depending on context.
Can you refactor spaghetti PHP code to clean OOP? +
Yes. I audit existing codebases, identify architectural problems, and incrementally refactor toward clean OOP without breaking functionality.
Do you write unit tests with the clean architecture? +
Yes. Clean architecture with dependency injection makes unit testing straightforward — mock dependencies, test logic in isolation.