Hacker News new | ask | show | jobs
by zff 998 days ago
I do one-off text transformations that not worth writing a script for. Eg. paste a bunch of unformatted data and format them in json, find patterns in huge text etc.
6 comments

This is the best use I've found so far as well, which is a bit disappointing for something that many hyped to be so revolutionary. It's handy, but sadly not a major paradigm shift.

Translating between (natural) languages is another nice one. You can throw in json structures or fluent files or what have you and most of the time have it come out with pretty good translations that are formatted correctly.

Agreed. For example, I recently had an auto-generated SQL query that I needed to debug. It was formatted on one line and was impossible to read. I asked GPT-4 to clean up the query and it gave me something that was much easier to consume. I definitely could have written some script for this or tried to find another tool, but it took me 20 seconds to just ask GPT-4 and get a reasonable result.
Did you ask GPT to do any transformation beyond what any IDE's "Format code" feature would do?
Yeah it actually gave me comments summarizing fields from related tables using shortened more readable table names
I've used to take a giant json file and help me get a handle of the scheme. it wouldn't all fit in the window so I just cut some of it out.

I also used to take a chunk of html and replace all the class names and src urls with ...

I also had a list of 300 codes that kind of had semantic names and it was able to build me a table that mapped to a second list of about 20(code, descriptions).

> find patterns in huge text etc.

Oooooh that's interesting. Can you tell me more about what kind of stuff you use it to find?

interested also!
Interesting, never considered this before but now want to give it a try.
find patterns in huge text, such as parsing unstructured data? Or say, finding unique ip addresses from a large server log file or so?