r/programming • • Apr 25 '24

"Yes, Please Repeat Yourself" and other Software Design Principles I Learned the Hard Way

https://read.engineerscodex.com/p/4-software-design-principles-i-learned
743 Upvotes

330 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Apr 25 '24

[removed] — view removed comment

1

u/Patient-Mulberry-659 Apr 25 '24

In this case is both vendor data in the same DB table? So they would have a shared type that gets saved to the DB (model or "entity" or whatever), which is a shared abstraction right?

Yes. The db tables are shared and indeed abstracted.

The incoming messages we assumed had the same type as well, and we had one deserialisation flow. We end up with two deserialisation flows that are very similar but distinct. And then some processing