Live data from Hacker News

Ask HN: How are you using GPT to be productive?

news.ycombinator.com

1–10 of 752 posts

Ask HN: How are you using GPT to be productive?

#1
With GPT so hot in the news right now, and seeing lots of impressive demos, I'm curious to know, how are you actively using GPT to be productive in your daily workflow? And what tools are you using in tandem with GPT to make it more effective? Have you written your own tools, or do you use it in tandem with third party tools?

I'd be particularly interested to hear how you use GPT to write or correct code beyond Copilot or asking ChatGPT about code in chat format.

But I'm also interested in hearing about useful prompts that you use to increase your productivity.

Re: Ask HN: How are you using GPT to be productive?

#2
I have asked ChatGPT tax questions, some of which I knew the answers to and others not. I think it’s a great summarizer if the spammy blogs out there.

It’s great for bash one-liners with flags and OS-specific nuances.

Haven’t really been able to use it for really advanced things. But maybe someday.

Re: Ask HN: How are you using GPT to be productive?

#3
With the understanding that it's only trained up to Sep 2021, I'm using it to spot check for any libraries that have flown under my radar, or any other methods of doing work that I usually do, but in a different fashion.

Do I always get stuff that I can apply? No, not really. But given that discoverability can be low for things like that, it's usually helpful at finding me things to, at the very least, look into.

Re: Ask HN: How are you using GPT to be productive?

#4
Mostly just asking stuff directly on https://chat.openai.com/chat. Last 8 requests were (all successful):

- Asked it to improve a HN comment I wrote.

- Asked about an idiom I couldn't remember, by saying it in other words.

- Asked it to dumb down some things about options (finance) I didn't understand.

- Asked it if I could use the eBay API to list my purchase history (you can, and it knew how).

- Asked it to generate pretty standard Terms of Service for an app I'm working on.

- Asked it to generate a moderately complex Prisma (ORM) query that I described in natural language.

- Described what I wanted Nginx to do in natural language (e.g. "the index file will be served whenever no file is found") and asked it to output a configuration file.

- Asked it what the "XDG" in "XDG_CONFIG_HOME" stood for.

Also, occasionally ask it to generate shell commands using a CLI I wrote[0].

[0] https://github.com/clevercli/clevercli

Re: Ask HN: How are you using GPT to be productive?

#5
I’ve been using it to generate bash scripts because I don’t know bash scripting, and also have it generate regexes for me to search for code references in a programming language where the “find all references” functionality don’ doesn’t work quite well.

Re: Ask HN: How are you using GPT to be productive?

#6
I find ChatGPT most helpful as a "what's that called" tool. A lot of my queries are finding/confirming the right idiom when writing something, or getting a specific name out of a vague description (JavaScript concepts, shell commands, CSS selectors).

Search engines with SEO are so reliant on keywords that it often feels like I'm suggesting answers rather than asking questions - it's so refreshing to be able to just ask again.

Re: Ask HN: How are you using GPT to be productive?

#7
A while back, I mentioned in a thread that I have found ChatGPT to be quite useful for correcting grammar and spelling errors (https://news.ycombinator.com/item?id=34781888).

Later, when they released their API, I developed a CLI tool for this purpose (https://github.com/pncnmnp/grammatical). Note that it is not flawless, but it works well. It has improved my writing productivity, both for blogging and emails.

Re: Ask HN: How are you using GPT to be productive?

#8
I often use it as a thesaurus. "Words that mean X" or even "that situation X me and I was annoyed - give me options for X"

For programming, all sorts of things. I use it all the time for programming languages that I'm not fluent in, like AppleScript or bash/zsh/jq. One recent example: https://til.simonwillison.net/gpt3/chatgpt-applescript

I use it as a rapid prototyping tool. I got it to build me a textarea I could paste TSV values into to preview that data as a table recently, one prompt produced exactly the prototype I wanted: https://github.com/simonw/datasette-paste-table/issues/1

I use it for brainstorming. "Give me 40 ideas for Datasette plugins involving AI" - asking for 40 ideas means that even if the first ten are generic and obvious there will be some interesting ones further down the list.

I used it to generate an OpenAPI schema when I wrote my first ChatGPT plugin, see prompt in https://simonwillison.net/2023/Mar/24/datasette-chatgpt-plug...

It's fantastic for explaining code that I don't understand: just paste it in and it will break down what it's doing, then I can ask follow up questions about specific syntax to get further deeper explanations.

Similar to that, I use it for jargon all the time. I'll even paste in a tweet and say "what did this mean by X?" and it will tell me. It's great for decoding abstracts from academic papers.

It's good for discovering command line tools - it taught me about the macOS "sips" tool a few weeks ago: https://til.simonwillison.net/macos/sips

Re: Ask HN: How are you using GPT to be productive?

#9
I tried out the wxWidgets library recently and used GPT to generate examples on how to do things. Thought it worked excellently and got 99% of the code right.

In the past, I'd have used forums to find examples. There were still some forum posts about wxWidgets on Google, but I got the impression they were hiding most. Either way, GPT had them on demand.

Re: Ask HN: How are you using GPT to be productive?

#10
post #3

With the understanding that it's only trained up to Sep 2021, I'm using it to spot check for any libraries that have flown under my radar, or any other methods of doing work that I usually do, but in a different fashion. Do I always get stuff that I can apply? No, not really. But given that discoverability can be low for things like that, it's usually helpful at finding me things to, at the very least, look into.

as an fyi its hallucinated libraries for me when writing python code, importing things that dont exist.
Post reply on HN