Rain Paharia
๐ค SpeakerAppearances Over Time
Podcast Appearances
It would be a couple of weeks of work at least, and it would be pretty hard for me to justify that work as opposed to just ambling along with the default maps.
But then I really also wanted to get this in the hands of my coworkers because I'm actually really excited about this pattern.
So what I ended up doing was that I ended up handwriting one of the maps.
And then I told, I think back in the day, it was like Sonnet 4.1 or something, right?
So this was, you know, we were like a couple generations before, right?
And so I just told it to kind of replicate, you know, the same APIs across all of the other maps, right?
It just nailed it.
There were local differences to things that adapted the map types to those differences.
I want to see a total of around 20,000 lines of code.
Then I asked it to generate doc tests.
One of the things you should do, if you look at say the Rust core types, you will see that every method has a doc test associated with it.
I wanted to get that rigor where every method has a doc test associated with it.
I don't know about you, but I hate writing 5,000 lines of doc tests.
I just told the LLM to do that.
I gave it a couple of examples to start with, and I just told Sonnet 4.1, I think, to do that.
It just replicated the things that it wrote like thousands of lines of doc tests.
This work that I'd been dreading because it would be weeks of work,
It took me, I want to say, less than a day to get the whole thing ready.