This is an FYI rather than a question. Not sure if that is allowed here?
I've been working through the Rustlings exercises. I'm currently in the errors section. Just finished errors4.
The Rustlings solution uses if-else to fill in the missing code. My own solution used match.
I thought I'd run this through the various Chats to see what they would come up with. So I pasted in the code leaving a TODO comment in the
new() function and asked them to use
match to fill it in. To my surprise ChatGPT got it totally wrong at the first attempt and also didn't format and syntax highlight the output. After some prompted corrections it was able to get it right. Anyway, without going into too much detail, the best results overall were in this order...
Open Assistant (Correct in matching the conditions but produced weird non-compiling extra code)
ChatGPT (totally wrong until corrected)
Phind specialises in developer and techie queries. The top three Chats explained what they did. Bing Chat did so only with a follow-up prompt. YouChat was correct but didn't explain itself.
Last week I did a similar exercise with the football scores HashMap example. This was very surprising in that all of the Chats failed badly even though, from their explanations, it seemed like they understood what I was asking them to do.
I was able to get Bing Chat to get there in the end but I had to give it several successive prompts. I think it succeeded on about the 7th prompt. The others I couldn't make any progress on.
In general, Phind seems to be he best at code-related tasks but, as seen, not perfect.
Conclusion? Developers are not going to be out of work for a while yet!