Block scoping in Python
Python uses function-level scoping, for most cases: def f(): x = 6 if x > 0: y = 5 print(y) # This works, even though `y` was declared inside the `if` A variable declared anywh...
Python uses function-level scoping, for most cases: def f(): x = 6 if x > 0: y = 5 print(y) # This works, even though `y` was declared inside the `if` A variable declared anywh...
Ever tried googling “recursion”? There’s something quite peculiar about recursion. Every developer and their dog has heard of it at some point, and most developers seem to have quite a strong ...
This is a “rant + fix” blog post. If you’re looking for an interesting post, check out the other ones. I own a Dell Latitude 3420. It works well, has good battery life, good keyboard, and lots o...
I’m not a lawyer. You may have heard about this thing called GitHub Copilot. It’s a tool that can be integrated inside an IDE and allows you to rip off code from licensed code hosted on GitHub...
This article will discuss many topics, from CPU architecture design to historical shenanigans. Take a drink, it’s downhill from there. Even though the number has steadily decreased since the...
Rust macros are powerful, that’s a fact. I mean, they allow running any code at compile-time, of course they’re powerful. C macros, which are at the end of the day nothing more than glorified text...
I just received a spam e-mail impersonating the French social security (“Assurance Maladie”), which tells me to download my tax statement which they have graciously attached. There are multiple ...
Have you ever heard about “six degrees of separation”? It’s about the famous idea that there are always less than about six persons between two individuals chosen at random in a population. Given...
If you ever want to write code for the Sega Saturn using the Psy-Q SDK (available here), you may encounter a small problem with the toolset when using #include directives. Example: #include "abc....
I’ve recently encountered some pretty weird problems with my two USB3 external hard drives. Disk disconnecting when opening specific files, and refusing to reconnect on the computer until I plug it...