Breadcrumbs Collector

Acquiring knowledge one crumb at a time

Author

Sebastian

What is asyncio’s ensure_future?

tl;dr ensure_future let’s us execute a coroutine in the background, without explicitly waiting for it to finish. If we need, we can wait for it later or poll for result. In other words, this is a way of executing code in asyncio without await.

The Clean Architecture in Python. How to write testable and flexible code

An ideal project? If someone asked about the features of an ideal project, responses would surely mention a few specific things. First of all, an ideal project would have a clean codebase that is simple to read. Secondly, there should… Continue Reading →

Is your test suite wasting your time?

This article has been originally included in a PyconPL 2018 conference book. Abstract Nowadays there is no need for convincing anyone about the enormous advantages of writing automated tests for their code. Many developers had an occasion to feel total… Continue Reading →

I am writing a book!

You might be wondering why lately there is not much activity on the blog. Frankly, I am currently fully involved in another writing project, namely I am writing a book on the Clean Architecture! Book will be called Implementing Clean… Continue Reading →

Implementing Event Sourcing in Python – part 4, efficient read model with projections

This post is a part of Implementing Event Sourcing series. It consists of code snippets, thoughts and practical advice how to implement ES in your own project. The contents of this post will probably make the most sense if you… Continue Reading →

Implementing Event Sourcing in Python – part 3, robust event store atop RethinkDB

This post is a part of Implementing Event Sourcing series. It consists of code snippets, thoughts and practical advice how to implement ES in your own project. The contents of this post will probably make most sense if you also… Continue Reading →

Implementing Event Sourcing in Python – part 2, robust event store atop PostgreSQL

This post is a part of Implementing Event Sourcing series. It consists of code snippets, thoughts and practical advice how to implement ES in your own project. The contents of this post will probably make most sense if you also… Continue Reading →

Implementing Event Sourcing in Python – part 1, aggregates

This post is a part of Implementing Event Sourcing series. It consists of code snippets, thoughts and practical advice how to implement ES in your own project. The contents of this post will probably make most sense if you also… Continue Reading →

I have a big class with too many methods. How do I split it?

So there you are, with a class that has over 100 (200? 500? 1000?) lines of code in Python. Wow, such an impressive achievement. Life with a monster like this can’t be easy. History of our giant class is irrelevant…. Continue Reading →

asyncio – choosing the right executor

During application development with asyncio you will inevitably encounter situation when there is no asyncio-compatible library to use. It may be an API client for our business partner built with excellent requests library (that naturally doesn’t work well with asyncio)… Continue Reading →

© 2019 Breadcrumbs Collector — Powered by WordPress

Theme by Anders NorenUp ↑