Phuong Le (@func25)inLevel Up CodingGo EP10: GOROOT, GOPATH, GOCACHEFor instance, you might wonder what `GOPATH` and `GOROOT` mean, or what happens when you use commands like `go get` or `go mod tidy`.·12 min read·Jun 4, 2024--1--1
Phuong Le (@func25)inLevel Up CodingGo EP9: How to Gracefully Shut Down Your ApplicationWhen we talk about gracefully shutting down an application, there are a few key guarantees we aim to achieve:·6 min read·Apr 14, 2024--1--1
Phuong Le (@func25)inLevel Up CodingGo EP8: Handle errors while using defer to prevent silent failuresThere’s a subtle trap that many fall into: forgetting to check for errors in deferred calls.·7 min read·Apr 4, 2024--1--1
Phuong Le (@func25)inLevel Up CodingGo EP7: Goroutines Are StackfulEach time we launch a goroutine with go doSomething(), we’re immediately reserving 2KB of memory (this was 4KB in Go 1.2 and increased to…·6 min read·Mar 28, 2024--1--1
Phuong Le (@func25)inLevel Up CodingGo EP6: Keep contexts going with context.WithoutCancel()Everything from how to better control context to how to handle errors in a way that makes our apps work better and last longer.·6 min read·Mar 22, 2024----
Phuong Le (@func25)inLevel Up CodingGo EP5: Avoid context.Background(), Make Your Goroutines Promisable.We’ll talk about how to handle function returns smartly, filter data with zero waste, simplify complex decisions, and manage goroutines…·5 min read·Mar 14, 2024--1--1
Phuong Le (@func25)inLevel Up CodingGo EP4: Skip the ‘Get’ Prefix For GettersFrom enhancing code readability to optimizing inter-goroutine communication, these tips aim to refine your coding approach.·6 min read·Mar 8, 2024----
Phuong Le (@func25)Before You Code: The Computer Architecture Every Programmer Should KnowThis story outlines a classic model of computer architecture, often referred to as the von Neumann architecture.·7 min read·Mar 8, 2024----
Phuong Le (@func25)inLevel Up CodingGo EP3: Pass Values, Not Pointers1. Pass Values, Not Pointers - 2. Pointer Receivers and Value Receivers Nuances - 3. Prefer Using a Pointer Receiver When Defining Methods·7 min read·Mar 1, 2024--2--2
Phuong Le (@func25)inLevel Up CodingGo EP2: Define interfaces in the consumer package, not the producer.Last week:·6 min read·Feb 25, 2024----