Ownership and Borrowing: The Concept Go Doesn't Have

    Go to Rust Series: ← The Rust Compiler | Series Overview | No Garbage Collector → The Core Difference Ownership is Rust’s most important concept-and the one Go completely lacks. In Go, the garbage collector handles memory. In Rust, the ownership system handles memory at compile time, with zero runtime cost. Go’s Approach: Share and GC Go: package main import "fmt" func main() { data := []int{1, 2, 3} // Pass to multiple functions printData(data) modifyData(data) printData(data) // Still usable fmt.Println(data) } func printData(d []int) { fmt.Println(d) } func modifyData(d []int) { d[0] = 999 // Modifies original } Output: ...

    April 22, 2025 · 7 min · Rafiul Alam

    Apple's DRI: The Simple Rule That Eliminates Confusion and Drives Accountability

    You’re in a meeting at Apple. The agenda has 12 items. Next to each item is a name. iOS notification improvements: Sarah Chen Battery optimization: Marcus Rodriguez App Store review process: Jennifer Wu That name isn’t the person who does all the work. It’s the person who is directly responsible for that outcome. One person. Completely accountable. Not a committee. Not a team. One person. If it succeeds, they get credit. If it fails, it’s on them. ...

    December 17, 2024 · 10 min · Rafiul Alam