Plurrrr

a tumblelog
Sat 06 Jun 2020

Using enumerated types in Python

This week's post is about using enumerated types (enums) in Python. You will learn:

  • How to use enums to manage data that takes on a finite set of states.
  • How to impose a custom ordering on data.
  • How to represent a combination of states using Flag and IntFlag.

Source: Using enumerated types in Python, an article by John Lekberg.

Some tips for working with hashes in Raku

The fact that Raku has no explicit references combined with the possibility to omit parentheses can sometimes mislead a developer. In this blog post, I will give a few examples of where I had some issues with trying to make it work.

Source: Some tips for working with hashes in Raku, an article by Andrew Shitov.

Why Snaps are an anti-pattern on Ubuntu

I congratulate the Linux Mint team for clearly taking a stand against snaps today by removing it from their repository, it was something many of us were voicing already since last several months. Snap is being shoved down upon Ubuntu users' throats by making it the default which isn't a very sensible thing to do.

Source: Why Snaps are an anti-pattern on Ubuntu.