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 recognize ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.