What is the Principle of Mutual Oblivion (POMO) and why is it important?

It's a software engineering principle that states that components or routines at the same level of abstraction should be unaware and independent of each other.

#90DaysOfProse
... with this pattern, functional units are designed with no knowledge of the outside world. The inputs and outputs are without any bias to the sender or receiver. They also shouldn't know the responsibilities of one another. #90DaysOfProse
Talk is cheap, show me the code...

... an example of co-routines that know too much.

buildSchema knows more than it should, thereby causing to change for more than one reason. Any changes to the schema deployment logic will mean that buildSchema has to be changed too.
one way to fix this will be to abstract the schema (the piece of work) away from the deployment strategy (worker)

#90DaysOfProse
Why is this important?

When software units are designed with a focus on a single responsibility, they become:

- very easy to test
- easier to refactor and extend
- reuse in a dissimilar context is easy peasy

#cleancode
#90DaysOfProse

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Ehimah Obuse #EndSARS 🇳🇬

Ehimah Obuse #EndSARS 🇳🇬 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!