--

In my opinion, DTOs are yet another code smell

derived from thinking objects as anemic data repositories.

If you need to transfer ‘data’ use ‘data’

You have primitive arrays, jsons, strings, etc.

If you create one anemic DTO object for every real object you will pollute your namespace, have duplication etc.

You are not transfering objects. you are transferring ‘data’

--

--

Maximiliano Contieri
Maximiliano Contieri

Written by Maximiliano Contieri

I’m a senior software engineer specialized in declarative designs. S.O.L.I.D. and agile methodologies fan. Maximilianocontieri.com

No responses yet