JavaScript/TypeScriptObject Type Check By User Defined Type Guard with Record Type I wrote the following article before. When we want to access a property of an object, we must somehow tell the... 2022.05.16JavaScript/TypeScript
JavaScript/TypeScriptTypeScript input validation by Method Decorators While I read a book on API Design Patterns, I found decorators were used in the examples. It looks like this. @ge... 2022.05.11JavaScript/TypeScript
RecommendationsThumb orthosis supports Tendonitis/Arthritis to relieve the pain I have tendonitis maybe in my both thumb. A programmer could have this problem because we use our fingers a lot. I'v... 2022.05.06Recommendations
JavaScript/TypeScriptTop-Level function cannot be stubbed if it is exported by an asterisk A top-level function is not a part of an object. If we need to stub it, we need to have an object that has the target f... 2022.05.04JavaScript/TypeScript
JavaScript/TypeScriptTS2322 error when trying to add a property to an anonymous object TS2322 error happens when trying to add a property to an anonymous object. Haven't you faced this case where you need t... 2022.05.02JavaScript/TypeScript
JavaScript/TypeScriptWhat is the difference between Stub and Mock In a unit test, we need to replace a real behavior with a test object but the variable name is sometimes xxxxStub for m... 2022.04.29JavaScript/TypeScript
JavaScript/TypeScriptReduce the number of if-else and switch-case conditional clauses Have you found a function is not readable because of lots of conditional clauses such as if-else or switch-case? It's t... 2022.04.27JavaScript/TypeScript
RecommendationsRecommended Books for Programmers to enhance the skills Are you looking for a book to improve your programming skills? There are tons of books that we can buy today but not al... 2022.04.25Recommendations
RecommendationsRecommended Items for programmers for work-env and health care We programmers work in front of monitors for 8 hours a day. We need to take care of the body for our health because we ... 2022.04.22Recommendations
RecommendationsLook at the Mt.Fuji on the Akko World Tour Tokyo keyboard I bought a second keyboard a week later after I got keyboard. I use the rainbow-colored keyboard at home but I wanted ... 2022.04.20Recommendations