4

Implemented Dependency Injection containers in pure ✨🐍✨

Comments
  • 4
    I did that in C#.
    Then I was asking myself wtf I‘m doing.
  • 1
    @Lensflare well .NET has quite a rich ecosystem around DI. The problem i had is that nothing seemed to work smoothly with FastAPIs DI system. The closest thing was dependency-injector, but the semantics behind providers and dependencies was way too confusing. And FastAPIs DI system is pretty wonky for classes, nothing felt like the beauty of how its implemented in C# or Angular.
  • 1
    Ah and i just dint get the design decision behind the Depends( class) in FastAPI. And especially why I can only use INSTANCES of Callable classes, which are basically stateful functions
Add Comment