ChatGPT is incredible, and scary
I'm confused at the negative tone here regarding ChatGPT. In don't know how Microsoft is going to use it, and its entirely possible they will stuff it up in some catastrophic way, but the system itself is simply revolutionary.
I can only assume the commentards here have yet to use it in anger. Do yourself a favour and go and try it now.
Before you do though, you need to understand the 90:10 ratio, and it's implications. Essentially 90% of the response you get back is generally incredible, but 10% is very convincing crap. This is important to understand the implications. You cannot just ask a question and cut/paste the answer out. You need to check it and correct that 10% before continuing. When using it to write code, think of it as a very bright junior dev. It knows the syntax of every language, it can code anything you can describe, but it screws up on a regular basis, and needs firm direction and code reviews.
Things i've had success with:
Give it a couple of create table statements, then asked it to create a trigger that updates one table or the other depending on a condition.
Asked it to create a blazor component to fillout a crontab, using droplists. Then got it to create the logic for the for loops to append the nd st rd etc on the numbers.
Asked it to create a regex based capture in c# to validate and extract the fields from the crontab.
Extracting emails from a string
Creating classes to deserialise complex sample json
Write a job application letter in the style of a surfer
Describe dark matter. Then simpler, and simpler.untill it ended up with a 2 line summary.
Things it failed at:
Describe a circuit that toggles between two leds when a button is pressed/released. It kept describing ones where they both came on together.
When creating the classes from the json, it would miss properties at random. When ponted out, it would add them back in
Getting it to create a blazor control for tge crontab using the ant design for blazor ui framework. It created a very convincing ui, using entirely fictitious controls. When challenged, it even specified how to install the framework, and the namespaces to include. Great, but controls don't exist.
Overall though, it's revolutionary for seniors in their field. We're used to fixing juniors mistakes, and it's so much quicker and easier to work with than any junior. I can get so much more work done than before. It is the future, Enjoy.
(But it's a bit terrifying)