Predictable Code


Like a lot of people, we've been experimenting with using AI tools inside our code editors to produce code and it's been interesting.

There's the situation where you don't easily remember how to do something and you can just ask it to generate code for you. An example would be "write this data out as a json file". That's something I do infrequently so would need a minute or two of thought and perhaps looking up some docs. With AI you can generate it in seconds and then adjust it so it's right.

Then there is code that relies on an external library like "refund a payment using the Stripe API". That is quick but you need to have a critical eye to judge whether it's a) doing the right thing, and b) whether there's a much better alternative solution.

The aspect of AI