Reading List
The most recent articles from a list of feeds I subscribe to.
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 →
Ratings on all platforms are meaningless.
Food tech (Swiggy, Zomato), taxi aggregators (Uber, Ola), and almost any platform that offers ratings do not go beyond the basic: allow stakeholders to rate and then display an average rating. It’s worse when there isn’t even a text box to fill — which is the primary implementation for many of these apps. While Zomato has separated out dining and ... Continue reading →
My first five days with a smart fitness tracker.
I’ve held off on buying a device that mines my health data, but a doctor’s visit recently prompted a change. I bought a Fitbit Charge 5 via Amazon. This could easily have been a Fitbit Inspire 2 and it would have met my needs. However, I wanted to be a little future proof. I considered an Apple Watch SE for ... Continue reading →