I'm not a software engineer and this is a genuine question to help me understand this CoPilot stuff.
I can code a bit. I've done it for work (utilities and test gear, not production) and still do for personal stuff. These days I might want an Apple script and my process is to have a look on the web, copy some code that does something similar to what I want, inspect it to understand it, then fiddle with it until I make it work. This works OK for me, but I doubt my code would be considered good. There's not much error/exception management, no memory management (I've read of it but don't really know what it is and I assume that Apple takes care of it if it's important). It's also surprisingly slow - which might be a down to Applescript but more likely due to me.
My question is - is CoPilot simply a massively more "intelligent" version of what I do, benefiting from a huge database of "learned" code which it can regurgitate and does the code it produces risk having the same issues as mine in terms of memory, security, exception, etc. management?