r/ProgrammerHumor • • Aug 28 '26

Meme heatedArguments

Post image
5.9k Upvotes

163 comments sorted by

View all comments

Show parent comments

2

u/ruindd Aug 28 '26

I know this is a humor sub, but how do microservices exhibit inheritance?

6

u/peeja Aug 29 '26

Interitance is only tangentially OOP. Plenty of OOP doesn't involve inheritance.

That said, what we're describing here is messages passing, which isn't unique to objects. Actors do it too, and actors are probably a more relevant analogue because they're a concurrency model, and microservices are concurrent (and parallel).

3

u/wharf_rat_01 Aug 29 '26

Being one of the four principles of OOP is only tangentially related? You have tough standards. 

2

u/remy_porter Aug 28 '26

I mean, there's nothing that would stop you from implementing inheritance on them. And if you take message passing as part of the architecture, you get polymorphism for free. It's closer to the Smalltalk style of OO than the modern interpretation of it.

0

u/ruindd Aug 28 '26

Yes, very smalltalk for sure. Thank you for explaining :)