loading...

Discussion on: OOP vs Functional Programming

Collapse
tvanantwerp profile image
Tom VanAntwerp

The thing I love about JavaScript is how easy it is for me to have a bastardized combination of OOP and functional.

Yes, I'm an awful person. ¯\_(ツ)_/¯

Collapse
elliot profile image
Elliot

Honestly I really like this about JavaScript as well! You get some good parts of OOP and the best parts of FP and the worst parts from both :)

Collapse
patryktech profile image
Patryk

I routinely mix both styles in Python as well.

If you look at the way the language is designed, I think it makes a lot of sense. Iterators, map function, filters, generators... They mesh really well with classes.