Golang Project Structure

Tips and tricks for writing and structuring Go code

Improving the SEO of Your Blog or Website

Three tiles with letters on them spelling out the acronym SEO, which stands for "Search Engine Optimization".

Search engine optimization (SEO) is the practice of optimizing your website in order to rank higher in search engine results pages (SERPs). I’ve built multiple websites over the years, with varying degrees of success, and this blog that focuses on the topic of Go coding is my latest project. So I want to share some […]

Using Pointers in Go Code

It’s possible to write thousands of lines of Go code without declaring a pointer even once. However, pointers are an important part of the programming language, so it’s important to ensure that you understand how they work. In this post we will discuss the definition of a pointer and then go on to look at […]

Has Google Created Sentient Life?

Blake Lemoine, a software engineer at Google recently lost his job after he went public with claims that Google’s LaMDA had attained such a level of consciousness that it could reasonably be considered a person. He even raised the possibility that LaMDA could experience a level of suffering that risked Google’s complicity in its exploitation, […]

Why Your Passwords May Be Dangerously Insecure

Passwords provide access to many of the websites and online services that we use on a daily basis. It is, therefore, vitally important to ensure that our passwords are secure and less prone to attack by anyone who may wish to do you harm. This post will discuss nine common mistakes that you or others […]

Reading and Writing YAML

This post will discuss what YAML is and how its syntax works. We will then move on to a simple real-world example, so you can see how YAML looks. Finally, we will learn how a program can be written in Go code that is able to read and write data formatted in YAML. What Is […]

Golang Zero Values (0 and Beyond)

This post will discuss what a zero value is and how it can be relied upon to give some default state to initialized variables. It’s important to know the zero values for each of the basic data types in Go, in order to use them in your own code, so we will also provide a […]

Reversing a String

This post will look at various ways to reverse a string in Go, a fairly common task that isn’t explicitly handled by the standard library. We will start by looking at some basic examples using Java and the Linux command line, then we will go through various ways to code solutions to the problem in […]

Functional Programming With Slices

This post will explore the programming paradigm known as functional programming and discuss what restrictions it places on programmers, as well as how it helps in the process of developing and structuring code. We will then go through some practical examples of functional-style code written in Go, specifically looking at how generic functions can be […]