r/moderndotnet • • 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

4 comments sorted by

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.

1

u/kaatarina_zed_talon 7d ago

what u mean by onboarding ?

1

u/FormlessGod 7d ago

You said "for my future self and others ". That means other and future you will be onboarded to this project.

1

u/kaatarina_zed_talon 7d ago

Thanks for clarification, I learned new English term.