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.
About technology stuff that piqued my interest
In today’s article, we will look at how to handle exceptions occurred inside children of coroutines created by the launch builder.
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.
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.
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.
If we store passwords in string objects, we cannot control when the corresponding memory is reclaimed. The SecureString type can partially solve this issue.
I frequently use the AutoFixture library to generate test data for my unit tests. Today, we will checkout the way it generates bool, enum, and int type.
Writing unit tests for the IHttpClientFactory interface is not that straightforward. Today, we will explore two different ways to solve this problem.
FakeItEasy is my favorite library to create mock objects for unit tests in C#. One of its features, the `Ignored` property, can be harmful if used improperly.
Python supports built-in handlers to cope with encoding errors. Not only that, we can also define our own handlers and register them with the codecs module.