Reading List
The most recent articles from a list of feeds I subscribe to.
Hide followers/following on Mastodon’s web UI.
Just used Stylus to hide followers/following on all profiles in the Web UI on Mastodon. What it does: You can also hide the “Follows you” tag: My mind rests a little easy now while browsing around. 🙂
Python TIL: the type base class.
From Python 3 onwards, every class by default is an instance of the type class. Some more playing around if that’s your thing: I discovered this while reading through a Django snippet and re-writing some Python 2 code into Python 3. Who knew reading code helps you learn?
Python tip: create a class dynamically.
Been looking through a Django snippet lately and had to make sense of it all. A line by line analysis eventually lead to me an interesting discovery: you can create classes programmatically. Well, also, I learned a lot more, but this particularly seems worth mentioning. The built-in function type that tells you what an object’s type is? Call that function ... Continue reading →
Python tip: default when fetching a dictionary key value.
Today I Learned that when fetching a value from a Python dictionary, you can set a default! A trivial example: That’s pretty neat! Seems like some other dict methods have this signature too. Ivan Sagalaev adds: You can also take out that key and value from the dict if you’re using .pop() instead of .get(). For example, it’s often useful ... Continue reading →
April 2022 in review.
Time is literally just flying… Nothing special happened this month, I think. I moved from @celia to @ru on Fosstodon. This was a “soft” move as I did not move my followers like people normally do when shifting to a new Mastodon account. Later in the month, I was also promoted to a moderator on the community, almost overlapping a ... Continue reading →