Blog
Notes on building software: Go backends, web architecture, audio DSP, and how things work under the hood.
-
How to Use Interfaces in Golang
The interface type in Go allows for polymorphism. They're another way of allowing code re-usability so that you don't end up with a bunch of duplicate code. Using empty interfaces also allow a way of using an "any" type in Go.
-
What Does it Mean to Store Computer Data as Binary?
You may have been told that computers store all their data in ones and zeros, a system known as binary. But did you know those ones are actually NOT ones but are actually twos? Here's how you can convert any number to binary and back again.
-
How and When to Use Pointers in Go
If you're coming to Go from a language that doesn't use pointers, they can be confusing. Pointers are just variables that store the location of other variables. Using pointers give you more control over program memory than you'd have otherwise.
-
How to Take Advantage of Concurrency in Golang
Concurrency is one of the primary strengths of Go. It has the concept of Goroutines which are an easy way to spawn concurrent functions. Mutexes, Waitgroups, and Channels allow a variety of ways to make code concurrency safe and sync up when needed.
→Newsletter
Subscribe for Updates!
Enter your email address to hear about new posts and projects. No spam, and I'll never share your email.
Thanks for subscribing!