Aaron's Page

This is where I post about what I'm working on.

--- Day 2: Dive! ---

or..

Is anyone onboard a pilot?

one art please

Part 1

Python

This was a basic "do you even switch/case" bro type of problem, which I can appreciate because Python doesn't have a native switch/case syntax. You either build a dict to facilitate your handling or you use if-elif (which is what I did because it's faster to implement).

Go

Unlike Python, Go has a switch/case syntax...I just had to review it in order to implement it successfully. The best thing I learned was that the switch parameter was optional.

default:
	fmt.Println("You dun goofed A-A-ron")

This is my common "error handling" in go at the moment.

Part 2

Python

To quote screen rant "Super Easy, Barely an Inconvenience". This was the easiest part 2 I've ever done, I suspect.

Go

I pretty much copy an pasted 95% of part 1 into this to solve part 2. Really it was just tracking a new variable throughout the process.

<< - Table of Contents - >>