Kotlin Weekly 中文周報——123

Kotlin Weekly 中文周報


  1. Using the Kotlinstdlibin Java code (medium.com)
    使用 kotlinstdlibin java 代碼
    Kotlin introduces a lot of great helper methods for us. Some of these include String helpers such as this one to capitalize the first character of a String. Is there a way to use some of this Kotlin functions in Java code? Yes, it is, and Victoria Gonda shows you how.
    Kotlin 為我們介紹了很多很棒的幫助方法。其中一些包括字符串助手,例如這個字符串的第一個字符。在 Java 代碼中是否有一種方法可以使用這些 Kotlin 函數(shù)?是的,它是,Victoria Gonda 向您展示如何使用。

  2. How to make sense of Kotlin coroutines (medium.com)
    如何理解 Kotlin
    Coroutines are a great way to write asynchronous code that is perfectly readable and maintainable. Kotlin provides the building block of asynchronous programming with a single language construct. This post explains in simple words the basics of coroutines and suspending functions.
    coroutines 是一個偉大的方式寫異步代碼,是完全可讀和可維護的。Kotlin 提供了一個單一語言構(gòu)造的異步編程的構(gòu)建塊。這個帖子用簡單的詞解釋了 coroutines 和暫停功能的基礎(chǔ)。

  3. Kotlin Coroutines patterns & anti-patterns (proandroiddev.com)
    Kotlin Coroutines 模式與反模式
    Dmytro Danylyk has been using Kotlin coroutines and decided to write about several things which you should and shouldn’t do (or at least try to avoid) when using them.
    DmytroDanylyk 一直使用 Kotlin Coroutines,并決定寫幾件你應(yīng)該而且不應(yīng)該做的事情(或者至少盡量避免)使用它們。

  4. Migrating Android build scripts from Groovy to Kotlin DSL (proandroiddev.com)
    從 Groovy 到 Kotlin DSL 遷移 Android 構(gòu)建腳本
    Gradle 5.0 has been released with lots of features and especially with the support of production-ready Kotlin DSL. In this article, Oussama Hafferssas shares the process he followed to migrate Gradle build scripts from Groovy to Kotlin DSL.
    Gradle 5.0 已經(jīng)發(fā)布了許多功能,特別是支持生產(chǎn)就緒的 Kotlin DSL。在這篇文章中,Ossamahafferssas 分享了他從 Groovy 到 Kotlin DSL 遷移 Gradle 構(gòu)建腳本的過程。

  5. Dependency Injection with Koin (talkingkotlin.com)
    Koin 依賴注入
    In this new chapter from Talking Kotlin, Hadi Hariri chats with Arnaud about Koin, a new dependency injection framework written from the ground up in Kotlin. They discuss the why, the how and whether in this day and age it makes sense to even have dependency injections frameworks.
    在這篇新的章節(jié)中,來自 Kotlin,Hadi Hariri 與 Arnaud 談?wù)?Koin,一個新的依賴注入框架,寫在 Kotlin 的基礎(chǔ)上。他們討論了為什么,如何以及在這一天和年齡,它是否有意義,甚至有依賴注射框架。

  6. Sarah-Jane Gallitz: Testing Kotlin Apps – Let’s make this easy (www.youtube.com)
    Sarah Jane Gallitz:測試 Kotlin 應(yīng)用程序——讓我們輕松一下
    Shares real-world examples of how to make testing your (Kotlin) App easier and quicker so you can have more time and more confidence in the quality of your releases.
    如何讓測試你的(Kotlin)應(yīng)用程序更容易和更快,這樣你就可以有更多的時間和更多的信心在你的版本的質(zhì)量。

  7. Level Up in Kotlin (www.youtube.com)
    提升你的 Kotlin 的水平
    Pamela Hill aims to help Android developers level up their Kotlin skills, focussing on intermediate/expert language features such as coroutines, DSLs, and libraries/frameworks such as Koin for dependency injection, and Spek for testing.
    Pamela Shill 旨在幫助 Android 開發(fā)人員提高他們的 Kotlin 技能,專注于中級 / 專家語言功能,如 Coroutines、DSLs 和庫 / 框架,如 Koin 依賴注入,以及 Spek 測試。

  8. Kotlin Coroutines and Kotlin 1.3 Q&A (youtube.com)
    Kotlin Coroutines 和 Kotlin 1.3 問答
    Kotlin Coroutines and Kotlin 1.3 overview by Andrey Breslav and Roman Elizarov with Q&A are now available on YouTube. A high-quality video for your Sunday.
    Kotlin Coroutines 和 Kotlin 1.3 由 AndreyBreslav 和 Roman Elizarov 和 Q&A 在 YouTube 上提供。

  9. Ya Basic (zdominguez.com)
    Zarah Dominguez falls frequently in cases where Kotlin code makes things more complex than they should be. She explained her latest experience, and a few tips on avoiding complexity.
    在 Kotlin 代碼使事情變得更加復雜的情況下,Zarah Dominguez 經(jīng)常會跌倒。她解釋了自己的最新經(jīng)歷,以及一些避免復雜的技巧。

  10. Kotlin Release 1.3.11 (github.com)
    Kotlin 發(fā)布 1.3.11
    Kotlin 1.3.11 is here with fixes for a number of bugs including contracts in Kotlin/JS. See the full changelog and release notes in this link.
    Kotlin 1.3.11 是在這里修復了一些 bug,包括 Kotlin/JS 的合同。在這個鏈接中看到完整的 changelog 和發(fā)行說明。


文章主要來源:

  1. Android Weekly - 339
  2. Kotlin Weekly - 123

關(guān)于我:微博,簡書,掘金,Github


?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,817評論 0 10
  • 午后間隙,慵懶地曬了一會太陽,我就回樓上睡覺了。 陽光透過米黃色的窗簾,撒落了一些在被子上。 這樣溫暖和舒適的天氣...
    白樺czh閱讀 1,201評論 6 11
  • “他們不是暴君!”再一次說出這樣的話,我看向同學們詫異的眼神,不禁有點面紅耳赤! 我們剛剛在談隋煬帝楊廣還有秦始...
    欠你一世年華閱讀 310評論 8 2
  • 漏洞類型:堆溢出利用方法:unlink(具體原理參見) 程序入口,經(jīng)典note類型的題目 代碼分析 這里有兩個問題...
    bluecake閱讀 1,123評論 0 1
  • 如果能和柯南迎面在米花的路口 和犬夜叉相遇于被封印的枯井 ...
    昔唐閱讀 389評論 0 0

友情鏈接更多精彩內(nèi)容