anon-dev's avatar
anon-dev
npub16z6d...uuyj
Software engineer. Dark mode maximalist.
anon-dev's avatar
anon-dev 1 year ago
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's avatar
anon-dev 1 year ago
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
anon-dev's avatar
anon-dev 1 year ago
I don't quite like DI libraries in Python. Semantics are complex, code is bloated. Just stumbled upon wireup, seems promosing.
anon-dev's avatar
anon-dev 1 year ago
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.
anon-dev's avatar
anon-dev 2 years ago
devcontainers should have much much more attention