JavaScript/TypeScript 5 Refactoring techniques that you can immediately apply Many software developers want to know techniques that they can immediately apply to make their code readable. A function... 2021.06.08 JavaScript/TypeScript
JavaScript/TypeScript Advanced state machine pattern I recently implemented logic to provide state machine info. At first I didn't implement it by State pattern but I felt i... 2021.03.15 JavaScript/TypeScript
JavaScript/TypeScript Best way to implement utility function Top-level vs Static vs Namespace There are several ways to offer utility function which is used by variety classes. Have you ever considered which way is... 2021.02.24 JavaScript/TypeScript
JavaScript/TypeScript JavaScript/TypeScript currying arrow function The currying or curried function is an arrow function that returns an arrow function. If the internal object also returns a function, it looks not readable. Let's break a big currying function into small pieces and understand how it works. 2021.02.19 JavaScript/TypeScript
JavaScript/TypeScript How to check if an object implements an interface in Typescript When using Typescript the compiler detects the type error. It supports any data type but it is not recommended to use be... 2021.02.16 JavaScript/TypeScript
JavaScript/TypeScript How to write Node-RED flow test Testing the whole Node-RED flow is important but adding test flows is not a good idea. Test stuff should exist only in the test code. This post explains how to write Node-RED flow tests in JavaScript/TypeScript code. 2021.02.15 JavaScript/TypeScript
JavaScript/TypeScript Replacing a static function by using proxy class This is 4th post in Become a better and decent programmer series.In the first post, I explained how to extract logic in ... 2021.02.14 JavaScript/TypeScript
JavaScript/TypeScript Reducing number of conditional clauses by command pattern This is 3rd post in Become a better and decent programmer series.In the first post, I explained how to extract logic in ... 2021.02.10 JavaScript/TypeScript
JavaScript/TypeScript How to make code testable In this post, we created a shopping application which is available on console and refactored it. It has only one class w... 2021.02.03 JavaScript/TypeScript
JavaScript/TypeScript How to become a better programmer I hadn't been decent programmer for a long time because I hadn't written unit test. Decent programmer should at least be... 2021.01.20 JavaScript/TypeScript