- Makes the case for mixing OOP and FP in the same project
- Explains how to decide which paradigm to apply to each problem
- Prefers OOP when there really is long-lived state that you interact with multiple times
- Prefers FP for business logic and domain modeling
- Generally finds FP simpler and easier to maintain
Original video by JetBrains:
Modern programming languages support both object-oriented and functional programming to a large extent. What are the differences between the two approaches and where is one more appropriate than the other? Can these two programming paradigms be combined?
In this session, we look at the differences and similarities between functional and object-oriented programming using examples in C# and F#.
Speaker: Urs Enzler - Software Architect @ Calitime AG
0:00:00 - Introduction
0:01:50 - UrsEnzler
0:02:14 - Presentation Start
0:04:02 - OOP
0:04:55 - FP (simplified)
0:09:19 - Thinking in OOP and FP
0:14:26 - Solution Structure
0:21:58 - OOP and FP Concepts
0:42:00 - C# and F# Strengths
0:44:51 - Other Advantages
0:47:33 - When To Use OOP and FP
0:51:47 - Questions and Answers
1:08:06 - Outro