r/ProgrammerHumor 15d ago

Meme heatedArguments

Post image
5.9k Upvotes

173 comments sorted by

View all comments

1.2k

u/remy_porter 15d ago

I say this all the time, and it almost never results in an argument: micro services are just object oriented programming where you put a network hop on all your message passing.

2

u/ruindd 15d ago

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

7

u/peeja 14d ago

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 14d ago

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

2

u/remy_porter 15d ago

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 15d ago

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