Avoiding the Pitfalls of Using “new” Keyword
Discuss how to avoid creating dependent objects manually in order to improve maintainability using dependency injection and abstraction.
Published in
6 min readFeb 12, 2023
Background
You probably see the “new” keyword every day. In simple cases, e.g., creating instances for data transfer object (DTO)…