I have always wondered how to do dependency injection when interfacing with external APIs so that I can use fake data for testing and then use the real endpoints by default when running live. Using default callables but then calling with fakes in testing seems like a great way to do that so thank you.
I have been programming in Python for 5+ years and async is still really confusing to me, not to mention greenlets/Gevent, trio, an Twisted. I know that under the hood it is somehow just syntactic sugar over a generator. Could you do a post on this?
Async requires more than a post, it will need a full series.
I can't easily make series in substack, linking is not great, code snippets are ugly. So little by little, I will build up a platform that will eventually let me publish it under better conditions.
Given I prioritize writing over coding a platform, it will take a good year to do so.
So in the mean time, I will have to stick to things that fit in a single article.
I could, however, make a single article about the difference between all those solutions. That's a possibility.
> Now that this baby is a swiss-army callable
Lol
I have always wondered how to do dependency injection when interfacing with external APIs so that I can use fake data for testing and then use the real endpoints by default when running live. Using default callables but then calling with fakes in testing seems like a great way to do that so thank you.
I have been programming in Python for 5+ years and async is still really confusing to me, not to mention greenlets/Gevent, trio, an Twisted. I know that under the hood it is somehow just syntactic sugar over a generator. Could you do a post on this?
Async requires more than a post, it will need a full series.
I can't easily make series in substack, linking is not great, code snippets are ugly. So little by little, I will build up a platform that will eventually let me publish it under better conditions.
Given I prioritize writing over coding a platform, it will take a good year to do so.
So in the mean time, I will have to stick to things that fit in a single article.
I could, however, make a single article about the difference between all those solutions. That's a possibility.
That makes sense. It is a large subject. Thank you for this blog. I found it very helpful.