Sponsored links
JavaScript/TypeScript

try-catch doesn’t catch an error thrown in timer

try-catch doesn't catch an error thrown in timer friend functions setTimeout, setInterval and setImmediate. Using timer ...
JavaScript/TypeScript

Recursive setTimeout vs setInterval

Recursive setTimeout and setInterval behave differently. You need to know the difference and which to use depending on the specification. This post explains how to implement it and the difference with images.
JavaScript/TypeScript

Nested class or inner class in Typescript

Inner class or nested class can be defined if you assign a class with an equal operator. Another way is to define a function that returns an object. If you call the function somewhere, the object can be handled as a class.
JavaScript/TypeScript

Is Map object faster than if-else and switch?

Using map object is useful to replace switch-case or if-else that can easily be long lines. It improves the readability but how about the performance? Is it faster than switch-case and if-else? Let's compare the difference!
Tips

Why is refactoring your code important?

Refactoring is the process to make existing code beautiful by restructuring it. It doesn't add features and change its b...
JavaScript/TypeScript

Node-RED node test fails when using sinon.useFakeTimer

Node-RED test fails when replacing timer related functions. Our own node derives Node-RED node and it calls setImmediate...
Tips

Self learning guide to be a good programmer

Do you want to start learning programming? Do you want to improve your programming skills but don't know what to do or i...
Docker

Building dev infrastructure with docker

It is getting major to use cloud service to store source code but there are still many cases to build infrastructure in ...
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...
Health

Keeping high-performance brain and healthy

Coding requires concentration. If we are tired code would be less readable. Without concentration, it is easy to add new...
Sponsored links