Conversation

I just got rank 17 on "Calorie Counting" - Day 1 - Advent of Code 2022 https://adventofcode.com/2022/day/1

1
0
1

@jhawthorn I did lose a second or two since I realized at T-1 or -2 that I wasn’t logged in. 🤦‍♂️

0
0
1

@alpha I saw! I skipped the test input and just used irb which always stresses me out but it paid off this time 😌

2
0
1

@jhawthorn I could probably optimize my workflow a bit. I use p ARGF.(...) and have a second tmux pane that I flip to that has pbpaste | ruby day_xx.rb in the history. Now that I say that, I should totally use entr instead.

0
0
0
advent of code spoilers
Show content

@alpha screenshot of irb window 😅

1
0
1
re: advent of code spoilers
Show content

@jhawthorn Bwahahaha, literally the only difference is [-3..-1] vs. .last(3), I love it.

And TIL about Array#last(n), so thank you for that!

0
0
1