FP vs OOP: Choose Two by Brian Goetz
Video Statistics and Information
Channel: Devoxx
Views: 26,149
Rating: 4.6943822 out of 5
Keywords: Devoxx, Devoxx2018
Id: HSk5fdKbd3o
Channel Id: undefined
Length: 42min 59sec (2579 seconds)
Published: Thu Nov 15 2018
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
An interesting perspective on OOP+FP (a common theme in Scala) from someone who works on another language at Oracle.
This is a pretty good presentation. Overall some of his points are pretty good.
I think Brian is wrong towards the end where he's saying that FP is bad at resource management. It really depends on what kind of resources you're talking of. If we're talking about RAM memory, then yes, FP is pretty bad at working with memory. But if we are talking about managing file / socket handles, then the abstractions I've seen in the FP world are far better.
Speaking of the big picture, a language like Rust can go further and protect against resources being prematurely closed, which is pretty cool. People are trying to solve this in Haskell by introducing "linear types", but it's unclear to me if that helps.
This has more to do with the type system however, than with OOP vs FP.
I totally agree. It's useful to use objects for make big boundaries, and use FP inside the boundaries.
That neo-nazi reference at 8 minutes is hilariously out of place. I'm 100% certain Brian doesn't know that Rise Above is a classic neo-nazi slogan, and that exact tattoo is common with the Aryan brotherhood, which makes the juxtaposition with the topic of the talk about getting along with multiple paradigms even more funny.