Lifetime Annotations in RustLifetime annotations in Rust are like a set of rules for references in a program. Just like how you wouldn't want your best friend to borrow your car without permission, you don't want references to data that aren't valid or safe to use. For example,...3 min read·shariftarver.hashnode.devJan 13, 2023
What was a technical roadblock that you overcame this week? How did you do it?I get so tunnel-focused writing on writing code and forget that it's best to walk away from your editor (and put down TikTok) to take a break, go for a walk, go play video games, or even sit in silence outdoors for some time to recalibrate. Sometimes...2 min read·shariftarver.hashnode.devMar 29, 2022
How I built a SPA with Vanilla.js + Ruby on Rails backendWhat is a Single Page Application? There are two main design patterns for web apps: multi-page application (MPA) and single-page application (SPA). A single-page application is an app that works inside a browser and does not require page reloading du...4 min read·shariftarver.hashnode.devJan 25, 2022