I hate building APIs so much is unreal.
Now I'm bootstraping a python project and adding FastAPI testing is being a PITA
anon-dev
npub16z6d...uuyj
Software engineer. Dark mode maximalist.
One of the most powerful features of python is that you can drop free functions to make modular changes.
Let's say you are dealing with batch processing and using chunked to make the chunks, but now you need to be more specific, you can simply create a, say, specific_chunked function, test it and drop replace chunked with specific_chunked
I don't quite like DI libraries in Python. Semantics are complex, code is bloated.
Just stumbled upon wireup, seems promosing.
Holy molly I'm shocked by cursor
WTF is agoradesk closing???
More than two hours lost -and counting- to debug an issue that consisted on an integer being casted to a string, then consumed to do a database lookup as a integer again.
And that is not even the execution path I'm trying to make work.
Lesson: don't do arbitrary, uncommented castings. If its an integer is an integer no matter what layer you are in or how you choose to represent it.
New week new tests to write
@PABLOF7z I've added a PR to support devcontainer at ndk. Let me know what you think. Thanks!

GitHub
Adds `devcontainer` by anon-dev-gh · Pull Request #170 · nostr-dev-kit/ndk
A first step to support devcontainers and provide reproducible development experiences to ease onboarding of new developers.
Tested as
> const {...
devcontainers should have much much more attention