Python's Data Containers Comparison

Posted on Thu 24 August 2023 in python

With Python 3.7 data classes have been introduced. They are simple classes that can hold some data as attributes, support type hints in a clean way, and provide a default constructor for developers. Good news! they can be immutable (frozen). I know the dataclasses lib provides much more features …


Continue reading

Respect __init__ to reduce your memory usage

Posted on Tue 20 June 2023 in python

Recently I was playing with some data using my beloved Python, and during transforming the records I found out that CPython can optimize the memory usage of created objects of the same class in a very interesting way.

I think most Python developers are familiar with __slots__, we mostly use …


Continue reading

I saw a kraken

Posted on Tue 13 June 2023 in database

PostgreSQL has been one of the first DBMSs I've used, and it has been a reliable choice for me over the past 7 years. For me, it always has been the statue of "Reliability". I have never personally encountered any bugs in PostgreSQL, this fact made me think that maybe …


Continue reading

Tenth year of using Linux

Posted on Fri 10 December 2021 in linux

In 2012 I met and installed Linux for the first time. I chose openSUSE 12.1 just because that green chameleon was so cool :))
Yes, it's not logical to choose your OS based on a logo but I was 16 and I didn't know anything about computers and what's inside …


Continue reading

Hello World

Posted on Mon 29 November 2021 in general

Hello World!


Continue reading