DEV Community

loading...

Discussion on: Don't return associative arrays!

Collapse
aleksikauppila profile image
Aleksi Kauppila Author

I've used DTO mainly in the context of dealing with databases or REST API's. But your reasoning is very solid, and i agree. I think it's not important what the service does, but what kind of relationship client code has to the server.

Forem Open with the Forem app