npub1vgs5rx9km8njvq8e5fs7a2c2yzzmvuwfjpqwgxxlyqf6kmfeds0q7suja8 (npub1vgs…uja8)
I use inheritance (in other languages) only to do lists of mixed types or I'm creating an API for someone else to extend.
Code deduplication, not so much. I guess is more about struct deduplication than code. Like if you have a struct with a variable, with a special deconstructor for it. But the same can be achieved with encapsulation.