Kotlin Weekly 中文周报
Drive Android API Integration – Part 1 (androidahead.com)
驱动 Android API 集成——第 1 部分
First article in the series integrating the Drive Android API using Kotlin.
在集成驱动 Android API 使用 Kotlin 系列文章中的第一篇。Dependency Injection in a Kotlin world (fragmentedpodcast.com)
Kotlin 世界中的依赖注入
A hotly debated topic at the moment is the use of a library like Dagger for dependency injection in the world of Kotlin. Danny Preussler dives into how some of these use a Service Loader/Locator pattern and the subtle differences with dependency injection.
目前,一个备受争议的话题是使用一种类似 Dagger 这个的 Library,在 Kotlin 的世界里进行依赖性注射。Danny Preussler 深入探讨了其中一些如何使用服务加载器 / 定位器模式和依赖注入的细微差别。Spring Boot, migrating to functional (frankel.ch)
Spring 引导,迁移到功能
There is a trend against frameworks and annotations recently. This affects of course frameworks like Spring. In this article, Nicolas Frankel explains how to migrate Spring Boot to functional.
最近有一种针对框架和注释的趋势。这会影响到像 Spring 这样的课程框架。在本文中,Nicolas Frankel 解释了如何将 Spring 引导迁移到功能。See what’s coming in Kotlin 1.3-M1 (jetbrains.com)
看看 Kotlin 1.3-M1 的情况
Kotlin 1.3 brings many advancements including graduation of coroutines, new experimental unsigned arithmetic, and much more. Check the details in this blog post.
Kotlin 1.3 带来了许多进步,包括 coroutines 的稳定版,新的实验无符号算术,以及更多。查看此博客文章的详细信息。Effective Java in Kotlin, obsolete items thanks to Kotlin (kotlin-academy.com)
有效的 Java 在 Kotlin,过时的项目感谢 Kotlin
Kotlin has deprecated some of the items from the legendary book "Effective Java". Check some of those items in this article at the Kotlin Academy.
Kotlin 已经否决了传奇书『Effective Java 』中的一些项目。在 kotlin-academy 中的这篇文章中,检查一些这些项目。Execute Kotlin Scripts with Gradle (kotlinexpertise.com)
用 Gradle 执行 Kotlin 脚本
In this article, you will learn how you can organize multiple Kotlin scripts as Gradle tasks and make them easily executable this way.
在本文中,您将了解如何将多个 Kotlin 脚本组织为 Gradle 任务,并使它们易于以这种方式执行。
Writing your first Detekt rule (medium.com)
写你的第一个 detekt 规则
Detekt is a static analysis tool for the Kotlin language. It’s open source, in active development and friendly to first-time contributors. Learn how to write your first Detekt rule in this article.
Detekt 是 Kotlin 语言的静态分析工具。它的开放源码,在积极发展和友好的第一次贡献者。学习如何在本文中编写您的第一个 detekt 规则。When lambdas and strong typing collide (medium.com)
当 lambdas 和强类型碰撞
Strong typing can be very helpful in keeping our code safer. Victoria Gonda tells us about an interesting experience she had when lambdas and strong typing collided.
强类型可以很有助于使我们的代码更安全。Victoria Gonda 告诉我们她有一个有趣的经历,当 Lambdas 和强类型结合时。Opening the Koin 1.0.0 — Beta version (medium.com)
打开 Koin 1.0.0 版 -Beta 版
Hi Koin users! This is it … we are releasing the first public beta version of Koin 1.0.0. Lots of work have been done…
你好,Koin 用户!这就是……我们发布了第一个公测版本的 Koin 1.0.0。许多工作已经完成…Headers, Interceptors and Authenticators with Retrofit (medium.com)
带改进的头、拦截器和验证器
In Android sometimes you need to add a couple of parameters, like headers, to make a successful request, this is a normal behavior from all the Android Apps, when you are using Retrofit, you can do it in multiple ways
在 Android 中,有时你需要添加一些参数,比如标题,才能成功发出请求,这是所有 Android 应用程序的正常行为,当你使用 Retrofit 时,你可以通过多种方式实现.....Simple network calls using Retrofit, LiveData, Kotlin Coroutines and DSL (proandroiddev.com)
简单的网络调用使用翻新,livedata,kotlin coroutines 和 dsl
When you build an app that has to deal with network calls, you almost end up writing the same boilerplate code. Rygel Louv shows how in a Kotlin world this can be done in a clean and elegant way.
当你构建一个应用程序来处理网络调用时,你几乎会写下同样的样板代码。Rygel Louv 展示了如何在一个 Kotlin 世界,这可以做一个干净和优雅的方式。Model-View-Intent & Data Binding (proandroiddev.com)
模型视图意图和数据绑定
I always try to simplify development process and reduce boilerplate code, therefore I decided to dive deeper into MVI.
我总是尽量简化开发过程,减少样板代码,因此我决定深入到 MVI。Conference for Kotliners 2018 recap (www.kotlindevelopment.com)
KotClint2018 会议
After years of running the Kotlin Budapest user group, lots of meetups, and a blog, the team at Makery decided to dream bigger, and go the extra mile: they set out to organize an all-day Kotlin conference. Here's the recap for this excellent event.
经过多年的运行 Kotlin 布达佩斯用户组,许多 Meetup,和一个博客,Makery 的团队 决定让他们的梦想走的更远.他们出发,组织一整天的 Kotlin 会议在离他们一英里的地方。下面是这个精彩事件的回顾。Conference for Kotliners 2018 (www.youtube.com)
KotClint2018 会议
Here's the playlist for all the excellent presentations from Conference for Kotliners 2018 in Budapest, Hungary.
以下是在匈牙利布达佩斯举行的 2018 年 Kotline 会议的所有精彩演讲的播放列表。Listeners with Observable, from Kotlin's Delegated Properties (www.kotlindevelopment.com)
从 Kotlin 的委托属性可以观察到的听众
Listening to the event of a property being changed is a highly common task. Kotlin comes to the rescue with a built-in language feature - enter the observable property. András Kindler shares a couple examples.
听一个被改变的财产的事件是一个非常普遍的任务。Kotlin 用一个内置的语言功能来拯救,输入可观察到的属性。AndrásKindler 有两个例子。Awesome Kotlin Resources (www.kotlinresources.com)
极棒的 Kotlin 资源
The ultimate resource list for your most loved coding language
您最喜爱的编码语言的最终资源列表
-
Text Categorization with Naive Bayes (youtube.com)
基于朴素贝叶斯的文本分类
A walkthrough of how to implement Naive Bayes from scratch, and use it for practical text categorization. Gotta love ML and Kotlin.
本文介绍了如何从零开始实现朴素贝叶斯,并将其用于实际文本分类。我要去爱 ML 和 Kotlin。
文章主要来源: