JavaScript/TypeScriptTypeScript 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...2022.08.05JavaScript/TypeScript
JavaScript/TypeScriptTypeScript 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...2022.08.03JavaScript/TypeScript
JavaScript/TypeScriptImplement 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...2022.05.27JavaScript/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
JavaScript/TypeScriptTypeScript Replace switch-case logic with Record object Switch-case is one of the basics for conditional statements and it is supported by many programming languages. It is us...2022.01.26JavaScript/TypeScript
JavaScript/TypeScriptTypeScript How to refactor a function to use named parameters TypeScript and JavasScript don't offer named parameters. How can we do a similar thing? Is there are any to refactor the code to apply the technique?2021.10.01JavaScript/TypeScript
JavaScript/TypeScript5 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 functio...2021.06.08JavaScript/TypeScript
JavaScript/TypeScriptAdvanced 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 ...2021.03.15JavaScript/TypeScript
JavaScript/TypeScriptReplacing 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.14JavaScript/TypeScript
JavaScript/TypeScriptReducing 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.10JavaScript/TypeScript