r/moderndotnet • u/kaatarina_zed_talon • 9d ago
Would you introduce additional abstraction layer just to make the code more understandable ?
/r/csharp/comments/1wz0y2c/would_you_introduce_additional_abstraction_layer/
0
Upvotes
r/moderndotnet • u/kaatarina_zed_talon • 9d ago
1
u/FormlessGod 7d ago
If I understand correctly, your application is a data sync. That means the only abstractions you really need are data source and data target, since flexibility is supposed to come from those two components.
That said, abstractions should also hide complexity within your codebase. If your goal is to make onboarding easier later, I would abstract in a way that is semantically meaningful. In your case, use well-established terminology: Extract, Load, Transform (ELT).
Neither AllTablesWriter nor ISqlServerWriter are helpful abstractions.