Depends is dependency injection.But it isn't dependency inversion (or DIP) within SOLID.
Two patterns with similar names: one interface I kept, one I deleted, and the point where FastAPI's own mechanism stops being enough.
5 posts
Two patterns with similar names: one interface I kept, one I deleted, and the point where FastAPI's own mechanism stops being enough.
An interface with one implementation describes that implementation twice. The one I kept exists for a different reason entirely.
Unknown address and wrong password returned an identical message — and very different response times, because short-circuiting skipped the hash.
A password change should end older sessions. It sometimes ended the new one too, because PyJWT truncates a datetime claim to whole seconds. And you can never claim your own JWT!
Suddenly, my app crashed. It stopped importing. The first fix was to break the cycle — and then it was to notice that pagination had never belonged next to posts. How tragic it was...
All 5 posts