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.
About technology stuff that piqued my interest
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.
FastAndFaster is a library to create objects and invoke their methods using dynamic code generation. Its performance is very close to static C# code.
Thư viện FastAndFaster sử dụng dynamic code generation để tạo object và gọi hàm của chúng tại runtime. Tốc độ của nó không thua gì static code.
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.
Trong lúc nâng cấp một project lên .NET 6, tôi gặp phải lỗi datetime khi sử dụng provider npgsql efcore. Hôm nay, chúng ta sẽ tìm cách sửa lỗi này.
While upgrading a project to .NET 6, I ran into an datetime issue with the latest npgsql efcore provider. Today, we will look at the cause and try to fix it.