Purity in my Programming Please

Pure functions are often hyped up in the Javascript world, probably because of the abundance of state in front end applications. While pure functions have their downsides (i.e. inconvenience, potentially large argument lists), I believe they should be used as much as reasonably possible, and I want to focus on pure functions in Go. What … Read more Purity in my Programming Please

How to: Global Constant Maps and Slices in Go

For the most part, Go developers are pretty good about using constants for global configuration, rather than global variables. A problem arises however when we want a constant slice, array, or map. The go compiler doesn’t allow these more complex types to be set as constant. Many developers, upon making this realization, decide to then … Read more How to: Global Constant Maps and Slices in Go

The Proper Use of Pointers in Go (golang)

Go has become increasingly popular in recent years, especially in my local area. It has been consistently displacing other backend languages like Ruby, Python, C# and Java. Go is wanted for its simplicity, explicitness, speed, and low memory consumption. Many developers that are new to the language, or new to a language that can handle … Read more The Proper Use of Pointers in Go (golang)