DEV Community

Discussion on: Intro To Functional Programming

Collapse
 
iioaia profile image
iioaia

Is there such a thing as hybrid programming? Mixing both styles?

Collapse
 
vkelman profile image
Vladimir Kelman

When we programs in a modern C# or Kotlin we definitely mix functional and object-oriented programming. Scala was specifically designed to combine improved Java OOP with functional programming. JavaScript supports both... well, in JavaScript there is virtually no limits to what you can do.

Collapse
 
mburszley profile image
Maximilian Burszley

In any modern language there's no limits to what you can do.. JavaScript only has the support it does because it's there by default in web browsers. I, for one, am happy with our upcoming wasm overlords.

Thread Thread
 
vkelman profile image
Vladimir Kelman

Yes, WASM looks intriguing.

Collapse
 
stemmlerjs profile image
Khalil Stemmler

Uncle Bob says that the best software is a mix of all paradigms.

Structured programming - this is the basis of our algorithms.
Functional programming - how we push data to the boundaries of our applications and elegantly handle program flow.
Object-Oriented programming - how we define relationships between modules / how we cross architectural boundaries with polymorphism and plugins