3 ms·
True, but it's much harder in some languages than others, and much much harder when crossing language boundaries. Copying a C# class to use as a DTO from a dat
by manigandham 6y ago
True, but it's much harder in some languages than others, and much much harder when crossing language boundaries.
Copying a C# class to use as a DTO from a database entity is way faster than trying to worry about serializing to a JSON structure while maintaining all the fidelity (like dates, big ints, binary data, etc).
Another example is reusing business logic like validation for data input. Blazor lets you use a single layer of logic instead of using JS-based simple validation on the form and more detailed checks on the server.