Breadcrumbs Collector

Acquiring knowledge one crumb at a time

Category

python

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 →

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 →

Writing custom checkers for Pylint

In the world of Python we have quite decent tools for a static code analysis. There are pylint, flake8, pep8 just to name a few. Rules they enforce are based on a solid foundation – PEP8 – Style Guide for Python… Continue Reading →

Django – squashing migrations versus continuous delivery

Every Django project may encounter a steady increase in a number of migrations over time. One way to lower their quantity is to use squashing. Squashing amounts to taking contents of few migrations and connecting them into one. This would… Continue Reading →

Dive into Python’s asyncio, part 2

All examples were tested under Python 3.6. The only asyncio rule After reading part 1 you should already know, that a heart of asyncio is an event loop. There is exactly one rule – do not block the event loop!… Continue Reading →

© 2019 Breadcrumbs Collector — Powered by WordPress

Theme by Anders NorenUp ↑