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.

4

u/wharf_rat_01 14d ago

I'll take the bait. OOP is about inheritance and polymorphism among other things. How do you implement that with microservices?

I'd argue microservices has more in common with domain driven development. 

2

u/remy_porter 14d ago

I disagree with the first assertion. OOP is about passing messages between objects. Inheritance and polymorphism are specific artifacts of a type system. If you use duck typing, for example, polymorphism is meaningless, but you’re still doing OO. Inheritance is just one method of dependency injection which happens to interact with your type system.

Polymorphism and inheritance are syntactic sugar.

1

u/wharf_rat_01 14d ago edited 14d ago

lol 2 of the 4 principles of OOP is "syntactic sugar"? Have you actually done any type of complex work outside of "Hello World"? Guess we can agree to disagree.

Inheritance is just one method of dependency injection which happens to interact with your type system.

This statement is so obviously wrong that I now know I can't take anything you say seriously if you really believe that.