Kotlin Weekly 中文周報
The advent of Kotlin 2018, week 1 (blog.kotlin-academy.com)
Kotlin 2018 年的到來盒揉,第 1 周
Marcin Moskala announces weekly Kotlin programming challenges. At the beginning of each week, we will publish one challenge for you to solve in Kotlin. They can be solved in many different ways and using different Kotlin features.
Marcin Moskala 宣布每周 Kotlin 編程的挑戰(zhàn)。每周一開始障斋,我們將發(fā)布一個挑戰(zhàn)契邀,為您解決在 Kotlin。它們可以用許多不同的方式解決趁曼,并使用不同的 Kotlin 功能军浆。Gradle 5.0 released with Kotlin DSL (docs.gradle.org)
Kotlin DSL 發(fā)布的 Gradle 5.0
Gradle 5.0 has been released, and in this release the Kotlin DSL for build scripts is now production-ready!
Gradle 5.0 已經發(fā)布,在這個版本中挡闰,Kotlin DSL 用于構建腳本現(xiàn)在已經準備就緒乒融!Kotlin for Python developers (github.io)
Kotlin for Python 開發(fā)人員
Kotlin is a compiled, statically typed language, which might provide some initial hurdles for people who are used to the interpreted, dynamically typed Python. The folks at Khan Academy were munificent enough to release this internal resource of theirs, to help of the Python developers out there.?
Kotlin 是一種編譯的、靜態(tài)類型的語言摄悯,它可能為那些被解釋的赞季、動態(tài)類型的 Python 提供了一些最初的障礙。Khan 學院的人們慷慨地釋放了他們的內部資源奢驯,以幫助那里的 Python 開發(fā)者申钩。Awesome Kotlin IntelliJ Plugin (jetbrains.com)
擼棒的 kotlin intellij 插件
Have you ever heard of the repository Awesome Kotlin? If the browser was inconvenient for you, now you can install this plugin and browse content within your favorite IDE.
你聽說過一些特棒 Kotlin 庫嗎?如果瀏覽器不方便你瘪阁,現(xiàn)在你可以安裝這個插件和瀏覽內容在你喜歡的 IDE撒遣。Concurrent Coroutines - Concurrency is not parallelism (kotlinexpertise.com)
并發(fā) coroutines - 并發(fā)不是并行
Kotlin Coroutines are described as a tool “for asynchronous programming and more”. What exactly does this mean? How is “asynchrony” related to the terms “concurrency” and “parallelism”? Learn more about those buzzwords in this article from Simon Wirtz.
Kotlin Coroutines 被描述為一個工具『異步編程和更多』邮偎。這到底是什么意思?『異步』與『并發(fā)』和『并行』的關系如何义黎?從 Simon Wirtz 的這篇文章中了解更多關于這些術語的信息禾进。Don’t be lazy, use @Rules (medium.com)
不要懶惰,用『@Rules』
@Rules are a simple way to modify the behavior of all the tests in a class, and they can level up our Kotlin game. Learn some practical examples in this article from Nicola Corti.
@Rules 是一個簡單的方式來修改所有測試的行為在一個類中轩缤,他們可以升級我們的 Kotlin 游戲命迈。從 Nicola Corti 的這篇文章中學習一些實際的例子。Increasing readability using operator conventions in Kotlin (proandroiddev.com)
在 Kotlin 中使用運算符增加可讀性
During his keynote at KotlinConf 2018, lead language designer Andrey Breslav emphasized what the language development team considers the most important principles of Kotlin. As a quick recap, these principles are readability, reusability, interoperability, and safety and tool support. This article focuses on how Kotlin’s operator conventions support these principles, particularly emphasizing readability.
在他在 Kotlinconf2018 的演講中火的,AndreyBreslav 強調了開發(fā)團隊認為 Kotlin 最重要的原則壶愤。作為快速回顧,這些原則是可讀性馏鹤、可重用性征椒、互操作性以及安全性和工具支持。本文重點介紹了 Kotlin 的運營商公約如何支持這些原則湃累,特別是強調可讀性勃救。A Comparison of Swift and Kotlin Languages (raywenderlich.com)
Swift 和 Kotlin 語言的比較
Swift and Kotlin can be considered fraternal languages. This article focuses on the main similarities and differences between Swift and Kotlin, including implementation, style, syntax and other important details.
斯威夫特和科特林可以說是兄弟語言。本文重點介紹了 SWIFT 和 Kotlin 的主要異同點治力,包括實現(xiàn)方式蒙秒、風格、句法等重要細節(jié)宵统。Android Injection Performance (github.com)
Android 注入性能
This project aims to measure the performance of several Dependency Injection frameworks (or Service Locators) in different devices. Koin, Kodein and Katana among them.
該項目旨在測量不同設備中的幾個依賴注入框架(或服務定位器)的性能晕讲。他們當中有 Koin、Kodein 和 Katana马澈。
文章主要來源: