alialdev / projects

Projects
0 stars 1 forks source link

Use Builder pattern for creating DTOs #13

Closed dvt32 closed 1 week ago

dvt32 commented 3 weeks ago

In SimulatedApiClient we're dealing with a lot of fields when creating DTOs and passing values for all of them via a constructor is not very convenient, because it's easy to make a mistake. Instead, try to use the Builder pattern: https://www.baeldung.com/java-builder-pattern.

ali-al-fntext commented 1 week ago

Done