Migrating Kotlin Context Receivers

Поделиться
HTML-код
  • Опубликовано: 11 окт 2024

Комментарии • 3

  • @PairingWithDuncan
    @PairingWithDuncan  3 часа назад +2

    Late this week as I was having so much fun at SoCraTes Belgium that I forgot it was Friday!

  • @JentaroYusong
    @JentaroYusong 13 минут назад +2

    12:37 Wunderbar ✨
    Love your refactoring videos. I appreciate your very structured approach on refactoring.
    I've used to get stuck trying to refactor to much at the same time. I've been watching your videos for a long time now and have read the book a while ago, both of which helped me in improving my own refactorings over the years. Thank you for that.
    Even though we had some areas of code where context receivers deemed a great fit over the last years, we refrained from using them as they were still experimental. While the refactoring does not look to bad, I'm still glad we opted for that approach, as some of the contexts might've span almost the whole application, which in turn would've resulted in refactorings affecting a lot of places in the code.
    Of course a flexible startup like Gilded Rose can take some of those risks associated with adopting experimental technologies. 😉
    Have a great weekend.

    • @PairingWithDuncan
      @PairingWithDuncan  5 минут назад +1

      Thank you for your kind words.
      As you say, contexts are solving multi-layer propagation, and so require intervention at each layer.
      I’m thinking of reverting most of this refactor in order to redo it when context parameters are finally available (skipping a compiler version).