DEV Community

Discussion on: OOP or Functional or Both

Collapse
 
ben profile image
Ben Halpern

I think both is the most practical scenario most of the time. With a flexible programming language use the paradigm that best fits the situation.

In some frontend scenarios it probably does make sense to go hardcore functional though. It will likely be a slower, more complicated building process, but could result in really consistent code.

Collapse
 
thexdev profile image
M. Akbar Nugroho

Love this. Yesterday i wrote my React component with FP implementation and my custom library with OOP implementation to manage local storage and session storage in my web.