Posts by Year

2021

Advent of Code: Year 2021, Day 1

2 minute read

I am back after not blogging for 6 months. Who knows if I will blog every day, but I am excited for Advent of Code regardless!

Sabbatical

less than 1 minute read

Today is Father’s Day in the U.S. I have an almost-11-month-old son who I should be spending time with, but I feel the need to post a blog because I have bee...

Perl Weekly Challenge 116

4 minute read

Part 1 was probably the hardest this week, but I ended up being able to adapt a solution from an existing Python library.

Perl Weekly Challenge 115

3 minute read

I had a very busy weekend and didn’t get the opportunity to post this during the actual week of the challenge, but I will post both 115 and 116 today!

Perl Weekly Challenge 114

2 minute read

Both of this week’s solutions look remarkably similar, because we were able to utilize the first subroutine for each one!

Perl Weekly Challenge 112

6 minute read

Task 1 allowed for some functional programming using some cool built-ins in Raku. Task 2 built on some code I wrote for Challenge 94.

Perl Weekly Challenge 112

6 minute read

A little string manipulation and recursion today. My solution to task 2 is almost the same as my solution to Advent of Code 2020: Day 10 (part 2)!

Perl Weekly Challenge 111

5 minute read

I was apparently the champion of the Perl Weekly Challenge for last month, which is pretty cool! I encourage folks to go read my interview with Mohammad Anwa...

Perl Weekly Challenge 110

3 minute read

A couple IO-related challenges this week with nice functional solutions. 🙂

Perl Weekly Challenge 109

5 minute read

Two fun tasks this week that were both able to be solved in a functional manner 🎉

Perl Weekly Challenge 107

3 minute read

I wrote this week’s answers several days ago, but forgot to commit them. I ended up getting a new laptop and had to rewrite them. I think they ended up the s...

Perl Weekly Challenge 106

3 minute read

Task 2 seems like it would be difficult, but once again, Raku has built-in mechanisms to help us out!

Perl Weekly Challenge 105

3 minute read

This week’s challenges are short and sweet, but still give us the opportunity to explore some interesting Raku-isms!

Perl Weekly Challenge 104

6 minute read

This week had some fun topics like recursion, memoization, and IO/data validation!

Perl Weekly Challenge 103

7 minute read

Challenge two this week was… interesting, to say the least. But, we are through it, and it’s the weekend! 🍻

Perl Weekly Challenge 102

5 minute read

Part one was an exercise in efficiency and short-circuiting; I am sure there are more optimizations I could add, but it works as is. 🙂 Let me know if you see...

Perl Weekly Challenge 101

6 minute read

This week was pretty fun – solution one ends up re-using some code from my first post (Challenge 88), and solution two explores Barycentric coordinates! No u...

Perl Weekly Challenge 100

7 minute read

This week was a lot of fun! Challenge 1 threw an additional curve ball at us – the solution should be a “one-liner.” I did my best to fit my solution on one ...

Perl Weekly Challenge 99

3 minute read

This week’s theme is regex, which is something the Perl family of languages has always been known for.

Perl Weekly Challenge 98

4 minute read

This week’s solutions explore some more obscure parts of the Raku ecosystem, namely state variables and adverbs.

Perl Weekly Challenge 97

3 minute read

My solution to challenge two builds on last week’s challenge two, so I encourage you to go read last week’s post if you haven’t already!

Perl Weekly Challenge 96

3 minute read

I admittedly took a shortcut for part two this week, but it allowed me to introduce modules here (I don’t believe I have used them before in a blog), so I th...

Perl Weekly Challenge 95

5 minute read

Two pretty simple challenges this week! I tried ot focus on strongly typed subroutines and methods to shake things up.

Perl Weekly Challenge 94

4 minute read

The second challenge was a lot like last weeks second challenge, so I went a step further and implemented multiple tree traversals. I won’t include the tests...

Back to top ↑

2020

Perl Weekly Challenge 93

10 minute read

I was going to stop adding my test cases (to the blog, not the code) this week, but after writing a solution that passed the provided test cases for part one...

Perl Weekly Challenge 92

5 minute read

It was a slow Christmas day for me, for the most part, so I decided to knock this challenge out as well as finishing up AoC!

Advent of Code: Year 2020, Day 24

7 minute read

Merry Christmas Eve! I had a lot more fun with today’s challenge than the past few days. It is reminiscent of days 11 and 17, but with a fun twist. I also so...

Advent of Code: Year 2020, Day 23

6 minute read

This is just trashy, slow code that gets the job done. Not functional, not fast, not clever, and not nice to look at. Anyway, enjoy!

Advent of Code: Year 2020, Day 22

13 minute read

I am posting day 22’s blog a day late due to an outage at work that took precedence. However, you can see from my git history that the code itself was writte...

Advent of Code: Year 2020, Day 21

4 minute read

I had much more fun with today’s puzzle than yesterday’s! We are back in Raku, after a few days of detouring through Python.

Advent of Code: Year 2020, Day 20

9 minute read

Today was… not fun, to say the very least. It was a lot of tedium, and I am not super proud of my solution.

Perl Weekly Challenge 91

3 minute read

I finally got some time between my day job and Advent of Code to tackle this week’s Perl Weekly Challenge. Pretty easy stuff this week; hope the difficulty r...

Advent of Code: Year 2020, Day 18

3 minute read

I like to hate on Raku quite a bit, but it was literally the perfect language for today’s challenge. I guess the love-hate relationship continues!

Advent of Code: Year 2020, Day 17

5 minute read

Today was almost exactly like day 11 except with more dimensions. If you remember from day 11, the Raku solution was so slow that I had to write a Python sol...

Advent of Code: Year 2020, Day 16

6 minute read

We got to explore some cool features of Raku today, even if it wasn’t 100% functional. 🙂 Read on to see what I am talking about!

Advent of Code: Year 2020, Day 15

6 minute read

Even with how short and sweet today’s solution is, I had to rewrite it between parts one and two after hitting the maximum recursion depth. So we’ve got one ...

Advent of Code: Year 2020, Day 14

5 minute read

Today was much less math-heavy than yesterday, although we will dive into an algorithm that would make it faster. However, I did do this problem more imperat...

Advent of Code: Year 2020, Day 13

8 minute read

Today’s challenge was… interesting, to say the least. It may look short and sweet, but it is fairly complex and requires a fair bit of number theory for part...

Advent of Code: Year 2020, Day 12

7 minute read

Today was the first day where I didn’t use the same code for parts one and two – they were just too different! Other than that, this is a classic recursive s...

Advent of Code: Year 2020, Day 11

6 minute read

I am giving myself half credit for today; the solution I came up with is in Raku, but it is an iterative solution. Additionally, this solution is slow. In fa...

Advent of Code: Year 2020, Day 10

4 minute read

Part two today almost forced me to use an iterative approach that would require a mutable array. However, I stumbled on a great feature of Raku that let me d...

Advent of Code: Year 2020, Day 9

5 minute read

Today we have a classic sliding window problem. But, instead of the traditional iterative approach, we take a recursive approach.

Advent of Code: Year 2020, Day 8

5 minute read

Today tripped me up a bit in part 2 due to my lack of understanding around copying objects in Raku. Regardless, we made it through and are now over 30% of th...

Perl Weekly Challenge 90

3 minute read

Today was a busy day with both Advent of Code and the Perl Weekly Challenge. Luckily, the PWC was short and sweet this week, and a nice breather after the Ad...

Advent of Code: Year 2020, Day 7

6 minute read

Well, today was our streak breaker. For the life of me, I could not get Raku to run in a timely manner. I ended up reverting to Python and using a more imper...

Advent of Code: Year 2020, Day 6

4 minute read

Well, our old pal set theory reared its head again today. I’m very happy with the middle ground I found between conciseness and readability with this challen...

Advent of Code: Year 2020, Day 5

6 minute read

Binary search is a well-known algorithm for searching already sorted lists. I liken it to searching for a book at a book store. If the author’s last name sta...

Advent of Code: Year 2020, Day 4

7 minute read

Today’s challenge was a rough one for me. Not because of the challenge itself, but because I fell into a trap in the Raku language that was giving me an off-...

Advent of Code: Year 2020, Day 3

4 minute read

Today was the first problem that I felt lent itself naturally to a for-loop. While there is nothing wrong with a for-loop in functional programming programmi...

Advent of Code: Year 2020, Day 2

5 minute read

We’re back again with another functional Raku solution! This problem requires some text parsing as well, which is where Raku (and its older brother Perl) rea...

Advent of Code: Year 2020, Day 1

4 minute read

Turns out I started blogging just in time for the Advent of Code, an annual series of daily challenges that run from December 1st to December 25th.

Perl Weekly Challenge 89

7 minute read

Back again with challenge 89! I was able to tackle this one the day it was released, but I doubt that will be the case going forward.

Perl Weekly Challenge 88

7 minute read

I have always been a fan of Perl (and its younger brother Raku), but, since leaving the Bioinformatics world, have not found any real-world scenarios to flex...

Back to top ↑