Joao Neto
banner
joaopneto.bsky.social
Joao Neto
@joaopneto.bsky.social
Talks about tech, product management, data and other geek stuff. Loves surfing, mountain biking and great books.
I just completed "Linen Layout" - Day 19 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/19

Part1 was trivial. Part2, I went in circles debugging the stop conditions of my recursion only to realize the solution space was huge. Used python's caching decorator (functools.lru_cache)
December 19, 2024 at 11:15 AM
I just completed "RAM Run" - Day 18 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/18

Not quite sure why this one was so easy. Re-used my Dijkstra's search from Day 16. Part2 was just simple iteration.
December 18, 2024 at 11:35 AM
I just completed "Chronospatial Computer" - Day 17 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/17

Part1 was fun.
Part2, tried to brute force a sequencial search with early exit.
Didn't work.
Tried caching.
Didn't work.
Finally got it after re-reading the entire (hint!) puzzle.
Day 17 - Advent of Code 2024
adventofcode.com
December 17, 2024 at 3:09 PM
The drop rate on #AventofCode is quite something.
December 16, 2024 at 1:25 PM
I just completed "Reindeer Maze" - Day 16 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/16

Not getting any easier. Part1, failed miserably going depth-first, and had to call upon our friend Dijkstra with a priority heap queue. Part2 took like 10 min to compute. 🫢
Day 16 - Advent of Code 2024
adventofcode.com
December 16, 2024 at 12:08 PM
#Surfskating in Cascais today
December 15, 2024 at 11:08 PM
I just completed "Restroom Redoubt" - Day 14 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/14

This was super fun to solve. For part2 I first tried to visualize a time-lapse but that took way too long. Had to come up with a clustering heuristic that did the trick!
December 14, 2024 at 11:17 AM
I just completed "Claw Contraption" - Day 13 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/13

So proud of myself! It's the first time I do part2 in seconds because I made smart choices in part1 by choosing not to brute force.
Day 13 - Advent of Code 2024
adventofcode.com
December 13, 2024 at 11:46 AM
I just completed "Garden Groups" - Day 12 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/12

Took me a while to get part2 logic nailed - and finally it was working in all examples, but failing for the input 🤯. Very painful. I think I got garden fencing PTSD now.
December 12, 2024 at 2:27 PM
This is what we call "December" around here
December 12, 2024 at 7:55 AM
I just completed "Plutonian Pebbles" - Day 11 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/11

This one was super fun! Got part1 in less than 20min, but no amount of optimization would work for part2. Had to come with a completely new strategy, and that took a while!
December 11, 2024 at 11:00 AM
I just completed "Hoof It" - Day 10 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/10

Part2 made me sweat quite a bit. Troubleshooting recursion on very large inputs was not fun.
December 10, 2024 at 1:13 PM
I just completed "Disk Fragmenter" - Day 9 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/9
Day 9 - Advent of Code 2024
adventofcode.com
December 9, 2024 at 2:02 PM
I just completed "Resonant Collinearity" - Day 8 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/8

Lesson of the day: Python does "short-circuit evaluation" for boolean expressions. Using "|" instead of "or" did the trick.
December 8, 2024 at 8:32 PM
I just completed "Bridge Repair" - Day 7 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/7

Lesson of the day: never use mutable data structures in recursive functions. 🤦‍♂️
December 7, 2024 at 2:40 PM
I just completed "Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/6

Learned a very humbling lesson about the difference between deepcopy and shallowcopy in python. 🫠
Day 6 - Advent of Code 2024
adventofcode.com
December 6, 2024 at 1:45 PM
Next time I will read the problem with more attention. 🥵

I just completed "Print Queue" - Day 5 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/5
December 5, 2024 at 1:11 PM
Part1 made me sweat a bit. Getting harder!

I just completed "Ceres Search" - Day 4 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/4
December 4, 2024 at 1:30 PM
Junior dev: I'll just use a regular expression!
Senior dev: It's a trap!

I just completed "Mull It Over" - Day 3 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/3
December 3, 2024 at 11:38 AM
Took me longer than I care to admit...😅

I've completed "Red-Nosed Reports" - Day 2 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/2
Day 2 - Advent of Code 2024
adventofcode.com
December 2, 2024 at 12:07 PM
I just completed "Historian Hysteria" - Day 1 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/1

Anyone doing Advent of Code this year?
Day 1 - Advent of Code 2024
adventofcode.com
December 1, 2024 at 9:50 PM
November sunsets in #Cascais are just amazing
November 21, 2024 at 3:55 PM
10y ago I was risking my life commuting on a skateboard in the streets of Paris. I got ran over by cars twice. Glad to see the city improving!
READ: “3,337 Parisians were equipped with GPS trackers to record their journeys…for journeys from the outskirts of Paris to the center, the number of cyclists now far exceeds the number of motorists, a huge change from just 5 years ago.”

Evidence of leadership.
www.forbes.com/sites/carlto...
French Revolution: Cyclists Now Outnumber Motorists In Paris
Official measurements have found that Paris is rapidly becoming a city of cyclists.
www.forbes.com
November 20, 2024 at 9:29 AM
#Carcavelos beach is packed at 4pm on a mid-Nov Monday. Clear skies and 20C. Winter is the new summer.
November 18, 2024 at 10:51 PM
"Let’s book a meeting to discuss this as soon as possible" - said the VP of Engineering. I looked back at him, puzzled. I had just joined the company and realized I didn’t know what ASAP meant in *this* company for *this* manager. Did he mean today? Later in the week? Next week? I wasn’t sure.
November 18, 2024 at 10:51 PM