I’m new to the Typescript world and I’m trying to learn some techniques.
Let’s imagine that I want to implement a Logger in my application with Winston. Later, I want to use Bunyan instead of Winston. Problem: All files that use the old Logger should be updated.
Note: It seems that Winston and Bunyan use the same functions. Let’s assume that this is not the case.
Should I create an interface (ILogger), then classes for each implementation (LoggerImplWinston and LoggerImplBunyan)? Any other options for you?
At the same time, I am also trying to use the Inversion of Control (Inversify) and Hexagonal architecture (Interfaces, application, domain, infrastructures) …
Thus, I’m french, so keep things as simple as possible
Thank you in advance.
Since its open source launch in 2013, Docker became one of the most popular pieces of technology out there. In this blog post we want to dive deeper into the internals of Docker to understand how it works.