Difference between for, while, forEach, for-in and for-of

A lot of languages support several ways for loop logic. Typescript supports following ways for example. whileforfor ...

async/await with Promise in TypeScript

Using promise makes the code much faster. This post explains the basic and advanced usage.

Unit test for singleton class

Singleton class problem in terms of tests Do you write tests for singleton class too? If the logic is simple enough ...
Other techs

Start Powershell with specified execution policy without changing default

How to start powershell I often starts powershell.exe from an explorer instead of command prompt because it looks better...

Using spread operator for process.env

I faced strange behavior when I used spread operator for process.env. In my project, our main source is Typescript but ...

How to write good unit tests?

Unit Test makes your software better in terms of not only quality but also class structure because you need to separate...

Dev Environment in Docker Container

When we try something new we need to install something and then remove it if it is no longer necessary but our PC will g...

Dependency injection in Typescript

Dependency Injection is one of important techniques to develop testable software. This technique which passes the depen...
Copied title and URL