Type hints in Python In Python, the following piece of code is a perfectly valid function definition: But what if someone tried to call the function with two strings (e.g. “10” and “5”) instead of actual integers? 🤔 BAM!!! That gave us a TypeError 🫢 How could we make it more clear that this function… Continue reading Python Protocol Classes (and Type Hints)
Category: Tech & programming
Know Thy Stack, or: Don’t be a Stack Hopper
Just like there’s the distro hopper, there’s a type of developer called the stack hopper. This post is about why you should settle for a stack asap and never look back.