So, the bot I'm writing for the fedi is intended to be used for simple games. I'm writing it in rust and because mastodon-async is, well, async, I'm having to learn corners of the language I hadn't touched before.
Using ChatGPT as a tutor is very handy. In principle I could reread the rust book until I get it, or I could find a real human to ask questions from. The first option I already tried, and inevitably I forget details or fail to understand edge cases or the like until I gain some practice. The latter would be a waste of a human's time.
I have a Game trait which implements the interface I want to be able to add different games. Then I added the one element I have to a vector I iterate on. I didn't realise that the vector is taking the concrete type, not the trait.
ChatGPT took me from understanding this situation, to using a boxed dyn trait object, rewriting my trait so that it is Send, setting Sized as a trait bound for associated methods, and getting tests to pass.
Could I have done it without it? Sure. Especially if I had someone to guide me. This is a privilege not anyone has (just using the word without political valence here).
So it's definitely made my life easier.
#AIBalance