Traps in "for-loop"s: A Deep Dive into Range-Based Loops and Variable Handling
Rust and Go are two modern programming languages that have made significant impacts in their respective domains. Rust shines in system programming, with a focus on memory safety without a garbage collector, while Go excels in simplicity and concurrent programming. Despite both being relatively young, these languages have key differences, even in how they handle range-based loops and loop variables. In this blog post, we’ll explore how Rust and Go differ in their treatment of loop variables, and a subtle but significant change introduced in Go 1.22. Even seasoned developers can stumble over these nuances, but understanding them can save you hours of debugging. ...
Fix "Partition /boot is too full" Error on Linux
Saving Space on Your /boot Partition I recently ran into trouble because I followed the old advice of allocating only ~200MB for the /boot partition. While this might have been a reasonable choice a decade ago, when files were smaller and disk space was more expensive, it’s no longer sufficient for modern systems. On top of that, I’m dual-booting with Windows, which further complicates disk space management. Anyway, that’s the situation I faced. The next question was: how do I fix this? After searching online, I found several recommendations that suggested deleting initramfs-linux-fallback.img to free up space. While it’s a large file and might seem unnecessary, it’s not advisable to remove it without understanding its purpose. ...