Tag: SoftwareEngineering
-
🔸Replacing a Property in TypeScript Data Types Without Duplicating🔸
While writing code, we often face challenging situations. I focus on finding ways to simplify development and increase type safety. One such issue was adapting user IDs in my back-end project. Here is how I fixed it using TypeScript. ▪️Problem: Adapting User Identifiers for External Integration In my project, I had several data types that…
-
Constructor dependency injection
Constructor dependency injection is a design pattern used to provide the dependencies required by a class through its constructor. This promotes loose coupling and makes the code more testable and maintainable.