Coding Packets Blog

Author Archives: Coding Packets Blog

AWS CLI Installation and Setup

In this post I will show you how to get the AWS CLI install and setup so that you can interact with AWS service via the CLI on your local machine. Installation At the time of writing there are two version of the AWS CLI. It is recommended to install version 2 of the software as all the...

Coding Packets the 11ty Edition

Last year I migrated codingpackets.com to a rails stack hosted on a digital ocean droplet. You can read about that here. I really love rails and was completely happy with that choice however, I am tired of managing infrastructure for what is essentially a static site. Therefore I decided...

2020 Goals

Its 2020 a new year and a new decade. I want to start the next decade with a bang and not spend it like I spend the last decade working myself to death. My goals for this year are primarily personal. I still have career related goals but they are not my primary focus. 2020 Goals 10% body...

2019 Year In Review

2019 turned out to be a pretty productive year. At the start of the year I set myself a few goals outlined in this post. How did I stack up? Read on to find out. 2019 Goals Loose 20kgs I started out the year at 89.9kgs and wanting to lose 20kgs. I finished the year at 71.9kgs a loss of...

Go Notes: Structs

A Structure or struct for short, is a type defined by the user that stores a collection of fields. go // create a struct type stuffAndThings struct // Instantiate a struct st := stuffAndThings // Use the dot (.) operator to access struct fields st.stuff st.things

Go Notes: Arrays

Arrays are a collection of values of the same type. go // create an array that can hold 2 elements var stuff [2]string // assign values to the array stuff[0] = "blah" stuff[1] = "bleh" // shortcut to create an array and assign values stuff := [2]string // let the go compiler dynamically...

Go Notes: Functions

Functions group operations into a unit of code. A function is defined with the func keyword A function name, its parameters and return types make up a functions signature go // Basic function that accepts no arguments and returns nothing func stuff() // Function that accepts an...

Go Notes: Variables

There are a number of methods to define variables in Go. Considerations Variable names must begin with a letter or a number When a variable is declared but not yet assigned it has a default value for its type A variable that is declared must be used Constants can only be assigned at the...
1 14 15 16 17 18 29