dependency injection
-
Unit Testable Code Involving Azure Table Connection
Writing code that is testable is a good practice. In my very recent experience in a project involving TDD, I realized that writing unit tests ensures the code follows SOLID principles. With unit tests, you are enforced to decouple the components and make them highly cohesive. Even though testing integrations such as Database connections, File… Continue reading
-
Xamarin : Reducing FindViewById() Boilerplate with Genetics
Often we feel bored with the classic Android Layout finder, the most famous FindViewById() guy. To overcome this recently I found a solution, a Xamarin component called Genetics. This is annotation based DI library and quite easy to use. To use this, you need to add the component and follow the example. Here is a… Continue reading
-
C# : Dependency Injection, Simplified
It has been a buzz word for some intermediate level C# developers, ‘Dependency Injection’ is sometimes really hard to understand because we couldn’t understand the need for it. In simple words, think about the scenario where you are developing an application which saves some data in a file and that file handling. You might code… Continue reading
Recent Posts
- Comments on Service Locator (Anti Pattern)
- RESP – Redis Client Server Protocol
- Reflections on Clean Architecture Implementations with ORM
- Startup Process Internals of Python Apps on Azure App Service for Linux
- Power of Services: Decoupling Secrets for a More Flexible System Architecture
- Decoding the Clash: Navigating the Conflict Between Django LocMemCache and Uvicorn Workers
- Replace Conditionals with Polymorphism Requires At least One Conditional
- Django Logging Raw SQL Statements
- Learnings From Game of Life
- Django: From Response Content to InMemoryUploadedFile
- JSON Data Type on MySQL and PostgreSQL
- On Web Servers Handling Multiple Requests
- On Callable Units of a Program (aka “methods”)
- TDD and Type-safety
- DIP: Understanding the Levels
- LSP: Definition, Rules, Violations, and Implementation
- OData Responses in Camel-Case for Non-EDMs in ASP.NET Core
- JS Inspired C# Generator
- JWT Validation Middleware in ASP.NET Core
- Convenience Methods, Golden Hammer and Boat Anchor