KotlinConf 2019: Error Handling Strategies for Kotlin Programs by Nat Pryce & Duncan McGregor

Share
Embed
  • Published on Dec 17, 2019
  • Recording brought to you by American Express. americanexpress.io/kotlin-jobs
    Kotlin largely inherits Java's exception mechanism, but exceptions and functional programming are uneasy bedfellows, leading to most projects adopting a wing-and-a-prayer as their error handling strategy.

    I needn't be so ad-hoc though. In this session we compare and contrast different techniques for handling errors in Kotlin programs. We will discuss the sweet spots, pitfalls and trade-offs encountered in each technique, illustrated with examples from real projects.

    Resources:
    KotlinConf website: jb.gg/fyaze5
    KotlinConf on Twitter: kotlinconf

    Kotlin website: jb.gg/pxrsn6
    Kotlin blog: jb.gg/7uc7ow
    Kotlin on Twitter: kotlin



    About the Presenters:
    Nat has been programming for *coughty-cough* years, and programming in Kotlin since it was in beta. He introduced Kotlin into his current client and his team used it to deliver business-critical, customer-facing web applications. Now many teams in the company are happy users of Kotlin, and it powers many of their core services.

    Duncan has been programming professionally for 25 years. He was lucky enough to ride the Object-Oriented wave of the 90s, the Agile wave of the 00s, and what he is convinced will be called the Distributed-Functional wave of the, erm 10s.

Comments • 13

  • zhou7yuan
    zhou7yuan Year ago +8

    What is failure [

  • Vitaly Banchenko
    Vitaly Banchenko Year ago +5

    37:00

  • Bartosz Raczkowski
    Bartosz Raczkowski 2 years ago +5

    How to rate this talk? It depends :D

  • Kishan B
    Kishan B Year ago +1

    At

  • Mukhtar Bimurat
    Mukhtar Bimurat 2 years ago +1

    Как пример здесь есть хороший доклад с использованием sealed class exceptions with hierarchies for bounded contexts

  • Roberto Guerra
    Roberto Guerra 2 years ago

    I found it a bit confusing the way they used the term `partial functions`. It has a specific meaning in FP, and they overloaded it... causing some confusion.

  • Thomas Keller
    Thomas Keller 2 years ago +12

    Highly underrated talk, this should get some more visibility!

  • Jason5Lee
    Jason5Lee Year ago +1

    35:57

  • finestHQ

    Result is not a monad. It doesn’t contain any Monadic operations like flatmap

  • Navid Rojiani
    Navid Rojiani 2 years ago +3

    Great talk!

  • HarystolhoGamer
    HarystolhoGamer Year ago

    Great talk