Golang Golang When should Atomic be used instead of Mutex? I have used sync.atomic for the first time in my work. It's lighter than Mutex. If the program requires speed and it doe... 2023.11.10 Golang
Docker Docker How to set up USB hotplug for a USB device I needed to configure Docker container that can recognize a USB device. I used --device option for the first release. It... 2023.10.27 Docker
JavaScript/TypeScript How to write clean if-else statements if-else statements can easily be nested and make the code unreadable if we don't consider anything to write it. if-else ... 2023.10.23 JavaScript/TypeScript
Python Python How to convert a nested JSON to a class It's easy to convert an object to JSON and JSON to an object in Python. json module provides the following functions. du... 2023.10.20 Python
Dart and Flutter Flutter Solve major problems related to TextField TextField is often used for input in Flutter but we (at least I) run into a lot of problems to achieve what we want. I o... 2023.10.11 Dart and Flutter
Dart and Flutter Flutter Timestamp input by TextField I posted the following article before to get Date and Timestamp. But sometimes it's better to have a simple UI. I wanted... 2023.10.06 Dart and Flutter
Golang Golang Unit testing with Gomega matcher A function result somehow needs to be compared in a unit test to know whether the function returns the expected value or... 2023.10.04 Golang
Golang Golang A good way to get struct data with gomega matcher It took me about 20 minutes to know the way to access a property in a struct that is passed by a channel in a unit test.... 2023.10.02 Golang
JavaScript/TypeScript Read all files and subdirectories in iterative call I needed to implement a function that reads all the files and the subdirectories. Many frameworks offer such a function ... 2023.09.06 JavaScript/TypeScript
Python Python How to pass a class constructor as an argument Is it possible to pass a constructor as a parameter? Yes, it is. There are multiple ways to instantiate a different clas... 2023.08.14 Python