All Articles

Let's Learn Algorithms: Sorting a list of strings in alphabetical order with bubble sort

This article demonstrates how to code a bubble sort that sorts a list of strings in a case insensitive manner using Go.

Let's Learn Algorithms: Reverse sorting a list of numbers with bubble sort

This tutorial demonstrates in detail how to adapt a bubble sort implementation written in Go to sort a list of numbers in reverse (non-increasing) order, rather than the default non-decreasing order. It is a useful trick to learn as it will help you custom sort other data types in the future.

Connecting to a PostgreSQL database with Go's database/sql package

This tutorial explains how to connect to a Postgres DB using the database/sql and lib/pq packages. It also covers potential errors and solutions.

Why we import SQL drivers as the blank identifier ( _ ) in Go

When I first started writing Go code I was working on a relatively simple web application backed by an SQL database, so the first thing I did was Google “golang sql” which lead me to to the database/sql package. While reading those docs I notice this line in particular. The sql package must be used in conjunction with a database driver. See https://golang.org/s/sqldrivers for a list of drivers.

Querying for records stored in a PostgreSQL table using SQL

This tutorial explains how to use the SELECT and WHERE statement to query data from a single SQL table.

Let's Learn Algorithms: Implementing Bubble Sort

Learn to code the bubble sort algorithm in Go by walking through a coding example and then working on several practice problems to reinforce the knowledge. If you have ever wanted to learn algorithms, this series is a great place to start.

Avatar of Jon Calhoun
Articles and Tutorials by
Jon Calhoun

Jon Calhoun is a full stack web developer who also teaches about Go, web development, algorithms, and anything programming related. He also consults for other companies who have development needs. (If you need some development work done, get in touch!)

Jon is a co-founder of EasyPost, a shipping API that many fortune 500 companies use to power their shipping infrastructure, and prior to founding EasyPost he worked at google as a software engineer.

Jon's latest progress update: Writing Course Notes

Recent Articles All Articles Mini-Series Progress Updates Tags About Me Go Courses

©2018 Jonathan Calhoun. All rights reserved.