Jorge Castro
Jan 4, 2021

OOP could follow SRP (Simple Responsibility Principle)

Functional programming breaks SRP into small pieces, and the small pieces are burned and tossed away.

Let's say, we have 3 specialists:

A database specialist.

A programmer specialist.

And a web design specialist.

Can we separate responsibilities?.

The core of most business applications is the concept of the 3-layers, i.e. we could separate the project into 3 parts, the visual, the persistence (database), and the integration between them. If we talk about MVC, then we are talking about the 3 layers.

Most OOP libraries allow MVC with some differences, while with functional programming, everything is built together. For example, React. Can we draw something as simple that a web designer could work at easy? No, React is code-and-html mixed.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response