14 Solving common problems functionally

This chapter covers

  • Using assertions
  • Automatic retries for failing functions or effect applications
  • Reading property files
  • Adapting imperative libraries
  • Converting imperative programs
  • Repeating effects

You now have many tools that can make your life as a programmer easier by using safe programming techniques coming from the world of functional programming. But knowing the tools isn’t enough. To become efficient using functional techniques, you must make them second nature. You need to think functionally. Just as object-oriented (OO) programmers think in patterns, functional programmers do the same with functions.

When OO programmers have a problem to solve, they look for design patterns they can ...

Get The Joy of Kotlin now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.