If, like me, you were not aware that python generators (async and normal) has a close
function with a cleanup mechanism, I strongly suggest you to read this article.
You'll never forget to close your generators properly anymore.
Other articles
You don't have to guess to estimate
If you are a software engineer, there is one hundred percent chances that at least one time in your career someone asked you to estimate some tasks. If you feel like, most of the time, estimating is just like guessing you should know that there is actually more concrete way of estimating.
read moreToasts are bad UX
Toasts are a very popular mechanism for UX design in order to give feedback to an user for actions/interactions. However, it might not always be the best mechanism to use in all cases, here is why.
read moreProcessing large JSON files in Python without running out of memory
If you ever struggled reading large JSON files using Python this article highlight several strategies to overcome memory issues. If personally think that JSON Lines is a very underestimated solution for streaming (read/write) JSON.
read moreOn the importance of naming in programming
I heard about the importance of naming in programming a couple years ago while reading Uncle Bob's Clean Code book. But I found this article to provide interesting examples as well as some nice tips on how to help you actually naming things. It also emphasis on the fact that names heavily depends on context and can actually highlight "bad code" in some ways.
read moreModern good practices for Python development
I should definitively write my own set of guidelines and practices for Python development. For the moment you can already find some in this article. I agree with most of the practices outlined expect maybe using TOML for configuration files (I prefer relying on environment variables and
read more.env
files). I would also recommend to opt for typer instead ofargparse
for more complex CLIs. Finally I would suggest using tools like uv or pdm to manage your project (packaging, dependencies, virtual environment).Practices of reliable software design
In the following article, the author discuss some interesting practices, not only tied to coding, for building and designing reliable softwares. There is one I particularly emphasis with is the Make testing easy which, in my opinion, is the cornerstone of good software design which is way too much overlooked in a lot of projects and companies.
read morePython packaging is great now, uv is all you need
To facilitate managing my Python projects managing and packaging I'm using PDM. This tool is really great and has lot of very nice features that will really simplify your life for building either applications or libraries. Lastly the guys from Astral (creators of ruff) made lot of improvement to their own similar tool,
read moreuv
. In this article, Juan Luis Cano Rodríguez quickly explain whyuv
is a serious contender in the Python project managing/packaging game.Integrating Problem Details RFC with FastAPI
During my past development projects, I built a lot of HTTP APIs using various langages (TypeScript, JavaScript, Python) and frameworks (fastify, FastAPI, flask, express). One thing I've noticed is that each of those frameworks have their own way of shaping HTTP error responses. This is actually not a big deal considering that most clients (i.e: HTTP clients) do not really rely on strict structure for such errors.
read moreThree Laws of Software Complexity
Lot of people think that building new softwares is complex. Actually, maintaining software is a lot more difficult than that. Just as for our universe, the entropy of all ours systems tend to increase more and more over time and thus, its complexity. This is where lies the challenge of our developers/ingeneers job.
read moreThe first software jobs AI will replace are...
An interesting short video of Dave Farley, interviewing Birgitta Böckeler, and discussing which software related jobs A.I may replace first. The interesting point is that both have a different opinion, what is your?
read moreSoftware needs to be more expensive
In this article the author make an interesting statement: most companies actively use open source code for free to create products for making profit. Read this article to discover why this should change and how.
read moreDon't use Python's property (for bad reasons)
I recently stumbled upon a code from one of my coworker who is rather new to Python. He is coming from a Java/Scala background and used python's
read moreproperty
decorator to mimic Java Getters/Setters. Let's see why you should not do this.