News for hackers. Stuff that matters.
Re:Why Domain Driven Design? by layer8 on Friday November 25, 2022 @09:08AM (#33742495)
It’s called separating interface from implementation. When using an interface, only make assumptions on what the interface specifies, and not on how it may happen to be implemented. When implementing an interface, only make assumptions on what the interface specifies, and not on how it may happen to be used.
Re:Why Domain Driven Design? by gadflyinyoureye on Friday November 25, 2022 @02:05PM (#33745707)
Even this confuses people. Often the name of the interface is something like S3Client. No, the name should be something like PolicyWriter.