У нас вы можете посмотреть бесплатно Down with Context Receivers - Migrating to Context Parameters или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Team Gilded Rose was an enthusiastic early adopter of context receivers for simplifying boilerplate code, and not very happy when then were deprecated without replacement. We removed some from the code, and left others. With the release of Kotlin 2.2 we apparently have a smooth migration path to their replacement - context parameters. Let’s see how that goes. 00:00:29 Why migrate now? 00:01:26 Upgrading our Kotlin to 2.2 00:02:10 Change the compiler flag 00:02:58 Now all the Context Receivers are broken 00:03:17 but we do have a Quick Fix 00:04:22 We can use _ for the parameter name if we don't need to reference it 00:06:46 If we need to reference the context, we have to give it a name 00:07:28 Function references don't work (yet) 00:08:10 Contexts are passed automagically where they are required 00:08:55 Not being a receiver does spoil my cute test trick 00:09:21 Compiler bug with value classes 00:11:19 Removing the last of the magic 00:12:30 Review and tidy There is a playlist of TDD Gilded Rose episodes - • Test Driven Gilded Rose in Kotlin Dmitry's Quick Fix plugin - https://plugins.jetbrains.com/plugin/... If you like this video, you’ll probably like my book - Java to Kotlin, A Refactoring Guidebook (http://java-to-kotlin.dev). It's about far more than just the syntax differences between the languages - it shows how to upgrade your thinking to a more functional style.