David Eadie
banner
davideadie.dev
David Eadie
@davideadie.dev
Software Architect @ Redgate
I'm in Utrecht for the next few days attending PASS on tour and Redgate Summit. Come and find me if you want to talk all things #flyway
October 1, 2025 at 4:41 PM
It's only taken 9 years, but I finally did the 20 mile round trip commute to the office on the bike. 💪
Let's see if my legs still work tomorrow.
April 3, 2025 at 5:25 PM
Advent of code - Day 16

I used a modified A* algorithm that keeps track of all the previous states that have the same cost to get to the current state.

#AdventOfCode #CSharp #dotnet

github.com/TheEadie/adv...

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day16/Day16.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
January 6, 2025 at 2:06 PM
Advent of code - Day 15

After some delay I'm back looking at these problems. Turns out recursion was the way to get this working and not the clever code I wrote for part 1. Some annoying edge cases for left/right too.

#AdventOfCode #CSharp #DotNet

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day15/Day15.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
January 2, 2025 at 3:31 PM
Where were you David for the rest of Advent Of Code?

Christmas partying over
January 2, 2025 at 3:25 PM
Advent of code - Day 14

I got lucky with a hunch in part 2 that the Easter egg might be when all the robots weren't overlapping.

#AdventOfCode #CSharp #dotnet

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day14/Day14.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 14, 2024 at 10:12 PM
Advent of code - Day 13

Took me far too long to remember the maths I needed to get the answer today. Also came unstuck by trying to use my coordinate record which uses ints rather than longs.

#AdventOfCode #CSharp #dotnet

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day13/Day13.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 13, 2024 at 8:01 PM
Advent of code - Day 12

Flood fill to the rescue. Part 2 took some time to get to a working solution.

#AdventOfCode #CSharp #dotnet

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day12/Day12.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 12, 2024 at 4:44 PM
Advent of code - Day 11

Even though I saw part 2 coming a mile away I still wrote the naive implementation for part 1 first.

#AdventOfCode #CSharp #dotnet

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day11/Day11.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 12, 2024 at 4:42 PM
Advent of code - Day 10

Accidentally solved part 2 before part 1 today. Simple breadth first search.

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day10/Day10.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 10, 2024 at 2:29 PM
Advent of code - Day 8

My first use of an infinite loop and yield returns this year.

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day08/Day08.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 10, 2024 at 2:24 PM
Advent of code - Day 7

Some depth first search and an early return when going over the target number. Could probably just be recursion since the depth of calls is quite low.

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day07/Day07.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 10, 2024 at 2:23 PM
Advent of code - Day 9

I thought the solution to one of the parts would cause me to run out of memory so I modelled it as "zones". Would have been much easier with an array and pointers.

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day09/Day09.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 9, 2024 at 5:52 PM
Advent of code - Day 6

I spent far too long checking if turning right at the current step would result in a loop and failing to get the right answer. I chucked it all away and did a brute force over the spaces in part 1.

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day06/Day06.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 9, 2024 at 5:47 PM
Advent of code - Day 5

Custom implementation of `IComparer` makes this quite simple.

#AdventOfCode #CSharp

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day05/Day05.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 5, 2024 at 2:23 PM
Advent of code - Day 4
Once again using a dictionary of coordinates to prevent complicated bound checks.

#AdventOfCode #CSharp

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day04/Day04.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 4, 2024 at 3:42 PM
Advent of code - Day 3
Regex to the rescue. Also resisted turning part 2 into an unreadable aggregate.

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day03/Day03.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 3, 2024 at 3:13 PM
Advent of code - Day 2
Brute force for part 2 today

#adventofcode #csharp

github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day02/Day02.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 2, 2024 at 6:26 PM
Advent of code - Day 1
Got to make use of the new .NET 9 `CountBy()`
github.com/TheEadie/adv...
advent-of-code/csharp/2024/Day01/Day01.cs at main · TheEadie/advent-of-code
Contribute to TheEadie/advent-of-code development by creating an account on GitHub.
github.com
December 2, 2024 at 6:20 PM
Reposted by David Eadie
🎄 T-24 hours until #AdventOfCode 2024! 🎄
November 30, 2024 at 5:23 AM
"This PR comment flame war could have been a meeting"
November 29, 2024 at 9:20 AM
Reported a blatant bitcoin scam last week on Instagram. Screenshots showing them making £86k in six days, posts of new car and new house. Just contact this other shady person to find out more. Clearly hacked account. Meta's response today? Hasn't broken any community guidelines. WTF
November 26, 2024 at 12:36 PM
Today's fun was trying to get both the WiFi and ZigBee network to work at the same time. I think I managed to only kick the family off the internet 3 times. Who's idea was it to make them use the same bit of the spectrum?
This article saved my sanity: www.metageek.com/training/res...
ZigBee and Wi-Fi Coexistence
ZigBee transmits on the same part of the 2.4 GHz spectrum as Wi-Fi, and when both protocols are transmitting at the same time, it causes interference that can damage the quality of the Zigbee signal. ...
www.metageek.com
November 23, 2024 at 8:00 PM
Pro tip: Don't leave writing a lightning talk until 2 hours before you're due to give it.
November 22, 2024 at 1:01 PM
Flyway 11 is out now. The highlights in this release are the new CLI verbs "add" (all editions), "diff", "generate", "model", "prepare" and "deploy" (Enterprise edition)
Looking forward to seeing the cool automations people build with them!
#flyway #redgate #devops
November 21, 2024 at 3:27 PM