home.social

Search

3 results for “narthur”

  1. Apparently this year I'll actually be doing in !

    I did my first pass at Day 2 Part 1 entirely in bash, and it was a mess. Cumbersome, and I did it a "clever" way mostly because I didn't know how to do math in bash. There was a much simpler way, that I would have immediately used in a "real" programming language, but my brain didn't see it because I was in bash.

    So after I finished, I asked ChatGPT what I should have done, and it pointed me right back to awk. (Or to python, but I'm trying to use standard unix tools.) And it suggested learnxinyminutes.com/awk/ - which is just awesome! Exactly what I needed to really get started with awk.

    So then I redid Part 1 purely in awk, with ChatGPT's help, and that was instructive. Then I did Part 2 from scratch, and it went well and it was much easier on my brain.

    Then I asked ChatGPT for a final code review, and it had a few minor suggestions that I incorporated, and a few bigger ones that I didn't. All of them helped me learn awk better. And overall I'm happy with what I wrote.

    github.com/truist/Advent-Of-Co

    adventofcode.com/2026/day/2

  2. Learning has been satisfying - I have glanced up against it so many times, but never really understood it. And it's easy and great.

    But the lack of "undefined variable" checking means `while (true)` was a really bad guess for how to make a forever loop.

  3. Even though my life is chaos right now, I'm at least starting today.

    I'm doing it in shell/bash, as a last-minute decision! Which started with learning some awk, which is/was long overdue.

    I'm using AI to help learn ("what tool should I use...?", "teach me the basics of awk..."), but writing the code myself.

    Day 1 was a 1-liner (wrapped in a bunch of boilerplate), and Part 2 was literally a single character change! Very satisfying.

    github.com/truist/Advent-Of-Co

    adventofcode.com/2026/day/1

Share on Mastodon

Enter the server where you have an account.