Course of Functional Programming: Refactoring OO to TypeClasses

Juan Manuel SerranoJavier Fuentes

By Juan Manuel Serrano y Javier Fuentes Backend

Introduction to pure functional programming in Scala and its advantages through type classes.

💸 First lesson available without registration!

In this course, we aim to refactor the example application used in the course HTTP API with Scala and Akka with the goal of providing our application with greater tolerance to change. To achieve this, we will use type classes, a technique offered by functional programming that allows us to implement our APIs in a much more declarative way and cleanse our business logic of asynchronous impurities.

By the end of the course:

  • You will know the fundamental steps to follow in the refactoring of an application using type classes
  • You will understand the basic differences between functional APIs implemented with type classes and conventional abstract interfaces
  • You will comprehend the role of monads and applicatives in decoupling the business logic of your application from the infrastructure aspects
  • You will learn about the role of the implicit mechanism in Scala and natural transformations in the process of dependency injection

Although it is not strictly necessary to take this course, remember that you also have the available Introduction to Scala course.

Here is the course summary so you can get an idea of the quality and content 😬

Finally, you also have the available introduction video to functional programming that we did in streaming on the occasion of the publication of this course:

Related courses

See full catalogue

Pay according to your needs

lite (only monthly)

19 €
per month
  • Access to a subset of courses to lay the foundation for maintainable, scalable, and testable code
  • Company invoice
Popular

standard

24,92 €
Save 121
Annual payment of 299
per month
  • Full course catalog
  • Design and architecture challenges
  • Highlighted solutions videos for challenges
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save 89
Annual payment of 499
per month
  • Everything above
  • More benefits coming soon

We won’t increase the price while your subscription is active