JavaScript/TypeScript

Sponsored links
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...
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...
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...
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.
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...
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.
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 ...
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 ...
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...
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...
Sponsored links