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.
About technology stuff that piqued my interest
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.
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.
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.
In today’s article, we will look at how to handle exceptions occurred inside children of coroutines created by the launch builder.
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.
Due to type erasure, we cannot access type information of generic methods at runtime. Unless we use the reified keyword inside an inline method.
Unit test không chỉ cần đúng mà còn phải dễ đọc. Với Kluent, chúng ta có viết những assertion nghe giống như ngôn ngữ tự nhiên.
A unit test not only needs to be correct but also needs to be readable. With Kluent, we can write assertions that sound like natural language.