As I wrap up my last week of paternity leave, I wasn't feeling all that inspired to write. Then, I received some funny messages from a previous student of mine about how challenging learning Python...
Tag: Python
This might seem like an extremely niche issue, but it's a problem I struggled to solve with the existing resources on the internet. As a result, I'm here to share how I got it done!
It's not often that you actually have to think about more interesting day-to-day algorithms like shuffling a playlist. That's what I want to talk about today!
The Difference Between str() and repr() in Python: A Design by Contract Perspective
Recently, I was giving a lecture about Java's "common" methods (i.e., all of the methods of Object), and I had epiphany about how Java only has toString() while Python has str() and repr(). So, it...
Magic numbers are numerical constants that have no clear meaning in the code and therefore make code harder to read. Anything that makes code harder to read is something we can use to obfuscate our...
Type hinting is a nice tool that dynamic typing languages employ to make code more readable. As you can probably imagine, readability is not the goal with obfuscating code, so we ought to get rid of...