#DependencyInversion

Arnaud Langlandearnolanglade
2024-04-03

🧐 Struggling with unit tests? Does your code involve input/output (IO) operations?

πŸ’»The answer is likely yes. Unit tests ensure that a unit of code works as expected. They only focus on testing the business logic. For instance, a unit test wouldn't cover database persistence.

More info 🧡 πŸ‘‡ [1/2]

πŸ–ΌοΈ Picture: unsplash.com/@gndclouds

Arnaud Langlandearnolanglade
2024-02-27

πŸš€ Excited to share my last blog post about the Dependency Inversion Principle (DIP), a crucial SOLID principle in Object-Oriented Programming (OOP)!

πŸ› οΈ Learn how DIP enhances code modularity, flexibility, and maintainability by decoupling high-level and low-level modules. Implement interfaces and embrace dependency injection to make your code more modular and adaptable.

The link to the article 🧡 πŸ‘‡ [1/2]

πŸ–ΌοΈ Picture: unsplash.com/@gndclouds

Dennis Doomenddoomen
2023-05-24

...the actual database using a SQL Server/Linux container or SqlLocalDB and drop the mocks altogether. In other situations, applying the Dependency Inversion Principle and an adapter to bridge your new and clean contract with the ugly dependencies can really help.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst