It's pretty dumb as a deterrent because a single miscalculation and it would set off a chain reaction that ends human civilization.
Think of it this way: because nuclear missiles are not immediately traceable to their country of origin, each nuclear-armed country will immediately launch at their perceived enemies without validating who attacked them. All it takes is one launch. This might deter a sane person but we are led by narcissists and these are not rational people.
Snippets are a great use.
I use StableCode on my phone as a programming tutor for learning Python. It is outstanding in both speed and in accuracy for this task. I have it generate definitions which I copy and paste into Anki the flashcard app. Whenever I'm on a bus or airplane I just start studying. Wish that it could also quiz me interactively.