Advent of Code 2018: Day 5

Ooh that's better. Kotlin is a much better match for Advent of Code than Java. I've never really used Kotlin in any meaningful way so would love to hear feedback if there's a better way I could be using it.Part 1Part 1 of today's task involves us being given…

Advent of Code 2018: Day 4

Wow, taking the effort to make a reasonable API for these one off scripts really takes it out of you, I kind of give up half way today. I think today will be the last where I actually consider the readability and reusability of my answers.From tomorrow I'll be…

Advent of Code 2018: Day 3

Part 1Part 1 involves taking a collection of "claims" which are rectangles, and calculating how many points exist in at least two claims.My solution is slow because of creating a Point for each coordinate. It could be sped up by replacing the Point with something lighter. It could also…

Advent of Code 2018: Day 2

Part 1Part 1 is a trivial checksum calculation where we need to loop through each ID - and count the number of IDs which have at least one character repeated exactly twice - and separately count the number of IDs which have at least one character repeated exactly three times.…

Advent of Code 2018: Day 1

This year I'll be submitting my solutions in Java. I haven't done this in the past because it's rather verbose and not ideal for the hacky little scripts that are usually required for Advent of Code, but it seems like good practice for writing readable code!Part 1The first part…

Reviewing Data Structures and Algorithms

In the past I've worked with a number of people who are solid programmers but do not have a traditional computer science background. With no exposure to data structures and algorithms, sub-optimal decisions can be made.To help with this, I've taken to having 1-on-1 sessions to review the fundamentals…

Edinburgh Fringe Festival 2018

I go to the Edinburgh Fringe Festival for one weekend every year. Last year we attended £¥€$ by Ontroerend Goed which I've been meaning to write about as it has some interesting ideas for game design. However, as I just came back from this year's festival - I figured it's not…

dotTest

The name test is reserved by the Internet Engineering Task Force (IETF) in RFC 2606 (June 1999) as a domain name that is not intended to be installed as a top-level domain (TLD) in the global Domain Name System (DNS) of the Internet for production use. dotTest is a small…

I want to change my password

My wife's phone was stolen last week. Though her data is password (/fingerprint) protected, and all of her passwords are stored in 1Password behind a strong master password, she still felt more comfortable after changing the passwords for things accessible from her phone. Since she was doing it, I decided…