FP vs OOP for beginners

Hello community

I have picked up a book for reading (learning scala). If my purpose is to use FP (most for spark), shall I need to continue with the OOP part?


Well, it mostly depends on what you mean with FP and OOP.
In any case given my experience with Spark actually not much of neither of them, for Spark you mostly only need:

  • Basic scala syntax.
  • Lambdas and understanding common functions like map & flatMap
  • Case classes.
  • And sometimes pattern matching, but not much.
1 Like