Viewing a single comment thread. View all comments

Frumpagumpus t1_j52baed wrote

i almost exclusively use playground as opposed to chatgpt, but i find it helplful for

writing sql queries

writing javascript that manipulates or accesses json that you can give it a structured example of

helped me figure out emacs keybindings in some instances

i occasionally use it to generate text or bounce random thoughts i have off of it.

has helped me get started on my taxes by suggesting relevant forms

3

zendogsit OP t1_j52wzj5 wrote

Definitely a good thought bouncer, have you noticed much quirkiness in the code that it outputs?

3

Frumpagumpus t1_j53b5ri wrote

one example is when i asked it to produce javascript that creates an html table, but uses the keys of a json object as table headers, it wrote some code that did all of that then stuck all the value in the first two columns. (still saved me some time anyway or, interestingly from having to use a library)

one funny thing is, with more well known languages like javascript, it seems like it never writes code that doesn't execute, it just doesn't seem to make syntax errors at all, if you asked me to write equivalent amounts i would write tons of syntax errors.

with less well known languages it makes up api calls.

it recognizes when you can use recursion to simplify things pretty well (e.g. in the json -> html table example it wrote a recursive solution), but i find goading it into doing like sub sub queries to be very difficult (for things like an sql query that joins a table to itself, select some columns, then accesses some json property, it would have difficulty doing all of that from my bad descriptions anyway)

1