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 函数?是的,它是,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 提供了一个单一语言构造的异步编程的构建块。这个帖子用简单的词解释了 coroutines 和暂停功能的基础。

  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,并决定写几件你应该而且不应该做的事情(或者至少尽量避免)使用它们。

  4. Migrating Android build scripts from Groovy to Kotlin DSL (proandroiddev.com)
    从 Groovy 到 Kotlin DSL 迁移 Android 构建脚本
    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 已经发布了许多功能,特别是支持生产就绪的 Kotlin DSL。在这篇文章中,Ossamahafferssas 分享了他从 Groovy 到 Kotlin DSL 迁移 Gradle 构建脚本的过程。

  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.
    在这篇新的章节中,来自 Kotlin,Hadi Hariri 与 Arnaud 谈论 Koin,一个新的依赖注入框架,写在 Kotlin 的基础上。他们讨论了为什么,如何以及在这一天和年龄,它是否有意义,甚至有依赖注射框架。

  6. Sarah-Jane Gallitz: Testing Kotlin Apps – Let’s make this easy (www.youtube.com)
    Sarah Jane Gallitz:测试 Kotlin 应用程序——让我们轻松一下
    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)应用程序更容易和更快,这样你就可以有更多的时间和更多的信心在你的版本的质量。

  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 开发人员提高他们的 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 经常会跌倒。她解释了自己的最新经历,以及一些避免复杂的技巧。

  10. Kotlin Release 1.3.11 (github.com)
    Kotlin 发布 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 和发行说明。


文章主要来源:

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

关于我:微博简书掘金Github


©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,524评论 5 460
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 81,869评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 141,813评论 0 320
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,210评论 1 263
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,085评论 4 355
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,117评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,533评论 3 381
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,219评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,487评论 1 290
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,582评论 2 309
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,362评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,218评论 3 312
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,589评论 3 299
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,899评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,176评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,503评论 2 341
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,707评论 2 335

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,258评论 0 10
  • 午后间隙,慵懒地晒了一会太阳,我就回楼上睡觉了。 阳光透过米黄色的窗帘,撒落了一些在被子上。 这样温暖和舒适的天气...
    白桦czh阅读 1,035评论 6 11
  • “他们不是暴君!”再一次说出这样的话,我看向同学们诧异的眼神,不禁有点面红耳赤! 我们刚刚在谈隋炀帝杨广还有秦始...
    欠你一世年华阅读 249评论 8 2
  • 漏洞类型:堆溢出利用方法:unlink(具体原理参见) 程序入口,经典note类型的题目 代码分析 这里有两个问题...
    bluecake阅读 1,038评论 0 1
  • 如果能和柯南迎面在米花的路口 和犬夜叉相遇于被封印的枯井 ...
    昔唐阅读 337评论 0 0