DEV Community

Cover image for OOP and FP
Mr.Crystal
Mr.Crystal

Posted on

OOP and FP

OOP helps developers understanding complex system by modeling into real-world objects with properties and methods. By applying OOP developers can improve the reusability of code and easier to manage and understand the system.

FP on the other hand, helps developers manage and control the access of data in which reduce the side-effect of having stateful objects like OOP.

It is depend on the project requirement and individual code-style that OOP or FP should be the choice on the project.

Top comments (8)

Collapse
 
jfrenchtweet profile image
Jeremy French

May I just thank the AI agent that wrote that for you.

Collapse
 
shifi profile image
Shifa Ur Rehman

Yes

Collapse
 
joewilliamdd31 profile image
Mr. Lucky

No because it contains grammar mistakes

Collapse
 
kbirgerdev profile image
Kirill Birger

This could use some substance, or takeaway. Curious if you have any thoughts on merging the two paradigms. FP has some niche advantages, but is in my opinion largely impractical for most large scale applications

Collapse
 
moyohussein_92 profile image
Hussein AbdulQohar

Nice. What is pop and fpbby the way

Collapse
 
nubebuster profile image
Mark Cockram

The lack of explanation of what FP and OOP are makes this article quite useless.

Collapse
 
gfierro profile image
Greg Fierro • Edited

Wow! Does anyone ever check their grammar anymore? Just three paragraphs and each one has an error. Not very "Crystal" clear sir.

Collapse
 
xoca07 profile image
xoca

What is the point of this article?