Hacker News new | ask | show | jobs
by munro 3553 days ago
The graphics are both indeed circular which makes them look alike, but the meaning is completely different.

In the OO graphic, it's representing a single cell organism, hence the circle. This is not the complete application. It's encapsulating the state of a single process, and only through externally interacting with the organism can the state be inspected & changed, all based on time.

The circles in the FP represent domain logic, the inner most circle represents your high level business logic. This is the complete application. Then translating your logic to the next lower level domain, until the physical hardware layer is reached and your program becomes something concrete and runnable. This layering resembles an onion, which is also a circle.

1 comments

Them being circular has nothing to do with what are they representing. They are showing off the idea of hiding implementation through abstracting it. This is the exact same concept that both of these photos are showing.
> Them being circular has nothing to do with what are they representing.

Please read my comment, that's what it says right after the first comma.

> They are showing off the idea of hiding implementation through abstracting it. This is the exact same concept that both of these photos are showing.

My comment breaks down how the hiding of implementation is completely different between the two, can you point what you think is incorrect so we're not talking past each other? Or is there anything you need clarification on?