Ask HN: How are you using GPT to be productive?
629 pointsWith 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.
Comments (735) 221 threads
Earlier commentsI’ve used it as a much smarter SO and Google for understanding existing code and getting suggestion how to solve some low-level problems in code as I’ve mainly working on fixing a lot of bugs (not my own code) and it’s in a programming language and libraries that I’ve got almost no previous experience in. It’s not always accurate but the amazing thing is that it’s somewhat steerable, but you need to have enough experience and understanding to detect subtle errors.
I’m only feeding it small snippets of code and sometimes we only chat about toy examples that are related to what I work on so I don’t have any major concerns about data leaks or hacks.
I’ve also tested it’s ability to do BDD, TDD, CI/CD and some more esoteric things such as formal verification with TLA+. My experience have been it works pretty good for any thing which have good amount of examples and related content. It’s actually a very good tool for learning as you can query it for issues you’re having while learning.
The only issue is it’s not up to date for leading edge stuff because of it’s cutoff time.
Here's an example capturing a session from earlier this week:
https://twitter.com/JoshCMandel/status/1638723030154203138
The knowns are libraries, languages and sometimes sample code.
Usual workflow is lots of Googling and reading documentation to get something out in a few days.
GPT saves me lots of time researching and has effectively replaced Google and StackOverflow. It allows me to design a plan of attack from “use these 3 libraries to do x” to a working prototype which I can then iteratively refine. It also is good at answering technical questions about library and language features. For example: “I have a pandas data frame, show me how to loop through it and access columns 3 and 4”. Once I see the API call is iloc I can research more.
However there are a few issues with GPT:
1. Makes up APIs that don’t exist.
2. Uses APIs incorrectly.
3. Not up to speed on the latest APIs, or maybe chooses not to use them?
For example I’m working with a library that has two functions: create_group() or get_or_create_group(). GPT seems to not acknowledge that get or create exists.
Some usage tips:
1. I usually tell ChatGPT in my first question is: “don’t respond with too much text or detail. If I need more clarification I will ask.”
2. Use Shift+Enter to formulate my initial question in detail. For example if I say “let’s write a Python app” it will respond with “sure Python is a great language to…”. So give it enough detail to get to the point.
All comments shown.
Couldn't load more comments. Check your connection and try again.