Other techs

PowerShell Try-Catch-Finally error handling

While coding in PowerShell, error handling is necessary. Even though the code is small enough, we want to know why it f...
Other techs

PowerShell Install msi silently

PowerShell. I sometimes need to use it. Whenever I use it, I have to google it to know how to do it. This time, I ne...
JavaScript/TypeScript

Understanding how to use Symbol.iterator

While I looked for an interesting programming article, I found a programming exercise. Interestingly, Symbol.iterator i...
JavaScript/TypeScript

TypeScript keyof typeof for type generation

Keyof keyof extracts property list of the target type or interface. interface Book { name: string; author...
JavaScript/TypeScript

TypeScript Make the function parameter more maintainable by using interface

Many programming languages support interface keyword. TypeScript also supports the feature. This is one of the importan...
JavaScript/TypeScript

TypeScript Utility types defined with infer keyword

infer keyword is one of the difficult features that TypeScript offers. Some utility types use infer keyword, so let's l...
JavaScript/TypeScript

TypeScript How to set a default value with Interface

Interface is a powerful feature supported by many programming languages. However, if we want to set a default value, we...
JavaScript/TypeScript

node-serialport throws “File not found” error for a certain device when using USB-COM interface

I needed to use node-serialport to use a scanner for my project. I have two scanners. One of them works fine but anothe...
JavaScript/TypeScript

Implement IoT State Machine Transition By State Pattern In TypeScript

In my project, my team needed to implement State machine. One of the developers implemented it by using many if-else bu...
JavaScript/TypeScript

A good way to write our own Node-RED node for the testability

I have used Node-RED for more than 3 years for my working project. I came up with a good idea to write our own node for...
Copied title and URL