PinnedInLevel Up CodingbyArchit Agarwal·Apr 23, 2025Stop Spawning Infinite Goroutines: Use Tee-Channels in Go for Scalable Event HandlingImagine you’re working on an app that allows users to sign up for free. But you also want to make sure that someone from the sales team…A response icon3A response icon3
PinnedInLevel Up CodingbyArchit Agarwal·Jan 22, 2025Go Singleton Pattern: Using sync.Once for Safe and Efficient One-Time InitializationLearn how to use Go’s sync.Once for safe, one-time initialization in concurrent applications. Prevent race conditions and optimize resource
PinnedInLevel Up CodingbyArchit Agarwal·Dec 18, 2024Why Every Go Developer Must Master context.Context to Avoid Production NightmaresImagine this:A response icon1A response icon1
PinnedInDev GeniusbyArchit Agarwal·Dec 11, 2024Are You Checking Error Types Correctly in Go?As a developer transitioning from languages like Java, .NET, or TypeScript, you’ve probably missed the convenience of try-catch blocks…
PinnedInDev GeniusbyArchit Agarwal·Nov 27, 2024Unlock the Power of Custom Formatting in Go: A Deep Dive into the Formatter InterfaceIn this article, we’ll dive into one of Go’s lesser-known yet powerful features which is the Formatter interface. If you’ve ever wanted to…
InLevel Up CodingbyArchit Agarwal·6d agoAn all-hands invite searched the org chart 2,000 timesIt worked in dev · Episode 24 · technique: lowest common ancestor, counted bottom-upA response icon1A response icon1
InLevel Up CodingbyArchit Agarwal·Nov 9A price filter read 200,000 products to return 20It worked in dev · Episode 23 · technique: in-order walk, pruned by the orderingA response icon1A response icon1
InLevel Up CodingbyArchit Agarwal·Nov 6Kahn’s algorithm lost to a for loop on our build graphIt worked in dev · Episode 22 · technique: topological sort, counting what each node waits forA response icon1A response icon1
InLevel Up CodingbyArchit Agarwal·Nov 2A config 5x longer took 28.7x longer to validateIt worked in dev · Episode 21 · technique: count the links, then union-findA response icon1A response icon1
InLevel Up CodingbyArchit Agarwal·Nov 2999 more stores made the delivery map 213x slowerIt worked in dev · Episode 20 · technique: two sweeps instead of a queue