Tag: DTOs

Start using C# records for DTOs instead of regular classes

In modern C# development, data transport objects (DTOs) play a crucial role in exchanging information between different layers of an application, such as between a client and a server, and traditionally, developers have used classes to define DTOs, which involves writing boilerplate code for propert...

Powering our APIs using attr active DTOs

Helping lay the groundwork for our new company-wide API was exhilarating. In early 2022, I was on the team that developed a proof of concept and established standards for our new APIs. Fast forward to today and you’ll find over 150 endpoints spanning 12 product areas processing millions o...

Stop Using DTOs in Go, It’s Not Java

DTOs are Java classes that contain data and have no behavior. They’re used to transfer data between layers of an application, such as between a controller and a service layer. DTOs are often used to encapsulate data and provide a layer of abstraction between the layers of an application....