Skip to content

Duong's Blog

About technology stuff that piqued my interest

  • English
  • Vietnamese
  • About me

Tag: Kotlin

  • Home
  • Kotlin

Dùng MeterFilter để thay đổi metric của Resilience4j

April 5, 2023April 5, 2023 duongnt.bkLeave a Comment on Dùng MeterFilter để thay đổi metric của Resilience4j

Đôi khi ta cần phải thay đổi Datadog metric sinh bởi library của bên thứ ba. Lúc này, interface MeterFilter là một công cụ hữu ích.

Java/Kotlin, Vietnamese Datadog, Kotlin, MeterFilter, Micrometer

Use MeterFilter to change Resilience4j metrics

April 4, 2023April 5, 2023 duongnt.bk1 Comment on Use MeterFilter to change Resilience4j metrics

Sometimes, we need to modify Datadog metrics emitted by a third party libraries. In that case, the MeterFilter interface is a powerful tool.

English, Java/Kotlin Datadog, Kotlin, MeterFilter, Micrometer

Delegation trong Kotlin và các hạn chế

March 23, 2023March 23, 2023 duongnt.bkLeave a Comment on Delegation trong Kotlin và các hạn chế

Kotlin hỗ trợ ta implement pattern Delegation. Nó giúp ta không phải viết nhiều code. Nhưng ta phải chú ý tới những hạn chế của tính năng này.

Java/Kotlin, Vietnamese delegation, Kotlin

Delegation in Kotlin and its limitations

March 23, 2023March 23, 2023 duongnt.bk1 Comment on Delegation in Kotlin and its limitations

Kotlin has great support for implementing the delegation pattern. But we must be mindful of its limitations and pitfalls.

English, Java/Kotlin delegation, Kotlin

Tìm hiểu về null safety trong Kotlin

February 6, 2023February 6, 2023 duongnt.bkLeave a Comment on Tìm hiểu về null safety trong Kotlin

Null safety trong Kotlin có vẻ đã bổ sung thêm kiểu dữ liệu cho JVM. Trong bài hôm nay, ta sẽ tìm hiểu xem tính năng đó thực ra được implement bằng cách nào.

Java/Kotlin, Vietnamese Kotlin, null-safety, nullable

Kotlin null safety deep dive

February 6, 2023February 6, 2023 duongnt.bk1 Comment on Kotlin null safety deep dive

At first glances, null safety in Kotlin seems to add new types to the JVM. In this article, we will take a deep dive and see how it is actually implemented.

English, Java/Kotlin Kotlin, null-safety, nullable

Xử lý lỗi trong launch builder của Kotlin

January 24, 2023January 25, 2023 duongnt.bk1 Comment on Xử lý lỗi trong launch builder của Kotlin

Trong bài hôm nay, chúng ta sẽ tìm hiểu cách xử lý exception xảy ra trong coroutine con của các coroutine tạo bởi launch builder.

Java/Kotlin, Vietnamese concurrency, coroutine, Kotlin

The Kotlin launch builder and exception handling

January 22, 2023January 25, 2023 duongnt.bk1 Comment on The Kotlin launch builder and exception handling

In today’s article, we will look at how to handle exceptions occurred inside children of coroutines created by the launch builder.

English, Java/Kotlin concurrency, coroutine, Kotlin

Type erasure và reified trong Kotlin

December 28, 2022December 28, 2022 duongnt.bk1 Comment on Type erasure và reified trong Kotlin

Trong Kotlin ta không thể sử dụng type information của hàm generic tại runtime. Trừ phi ta dùng từ khoá reified trong hàm inline.

Java/Kotlin, Vietnamese generic, Kotlin, reified, type erasure

Type erasure and reified in Kotlin

December 28, 2022December 29, 2022 duongnt.bk1 Comment on Type erasure and reified in Kotlin

Due to type erasure, we cannot access type information of generic methods at runtime. Unless we use the reified keyword inside an inline method.

English, Java/Kotlin generic, Kotlin, reified, type erasure

Posts navigation

Older posts
Newer posts
Copyright © 2025 Duong's Blog All rights reserved. Theme: Flash by ThemeGrill. Powered by WordPress