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 1 year ago
I'm trying to setup a devcontainer with ollama over WSL2 wish me luck
anon-dev's avatar
anon-dev 1 year ago
Mock is the worst idea on software engineering by far
anon-dev's avatar
anon-dev 1 year ago
I need to write a note about why mocks are one of the worst ideas on software engineering.
anon-dev's avatar
anon-dev 2 years ago
High hopes for zap driven adoption of bitcoin and nostr.
anon-dev's avatar
anon-dev 2 years ago
Almost NIP-01 complaint: events and messages are done, at least their initial versions. Now I need to think about the client and relay interfaces, but my first guess is simply reacting to the already defined messages on the NIP-01
anon-dev's avatar
anon-dev 2 years ago
NIP-01 is kind of a long one to implement
anon-dev's avatar
anon-dev 2 years ago
Object oriented programming is not about having classes as much as woodworking is not about cutting wood.
anon-dev's avatar
anon-dev 2 years ago
devcontainers should have much much more attention