Discussion about this post

User's avatar
Paul's avatar

I always hated doing things just because "it's standard", "that's how you need to do things", "best practice", etc. People who do this kind of stuff never understood the point. They have no idea what they're doing. I never understood why people just create an interface for everything, and when they need to change the implementation, they create another interface with a different class that implements it. What was the point of the interface in the first place if you just create a new one?

Expand full comment
reader's avatar

What if I use an interface to reduce dependencies between layers? For example, I always create an IUserRepository interface in the domain layer and then implement it with a UserRepository. In that case, Iโ€™m reducing the dependency of the infrastructure on the domain, which aligns with Clean Architecture, right?

Expand full comment
6 more comments...

No posts

Ready for more?