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 commentsIt required some small edits but saved me 3 hours of writing.
There are so many other examples but I truly never reach to google first anymore.
I often use it to just gain ideas when I'm stuck with any situation, eg: "How to deal with non-responsive stakeholders?"
Here's an example regarding grounded characters sticking to walls:
prompt: Thanks! I added walls and ground to my game, as well as detection so that if the player touches the ground, they will be in a grounded state. However, when the touch the vertical face of the ground/wall, they stick to it. Can you tell me what I'm doing wrong?
response: It seems like the issue you're encountering is related to the physics and collision detection in your game. The player is likely detecting the wall as the ground, and it's causing the grounded state to be triggered when it shouldn't be. To fix this, you can modify your ground detection code to take the angle of the surface into account.
Here's a solution using the Physics.Raycast method:
Assuming you have a LayerMask called groundLayer for ground detection, make sure the ground and walls are assigned to the appropriate layers in the Unity Editor
[...further details on using angle detection on collision, as well as accurate sample code]
I can even ask it to give me the reference for the _Physics.Raycast_ method:
response: Certainly! Here's the official Unity documentation for Physics.Raycast:
[URL to official docs filtered out by HN]
Physics.Raycast - Unity Manual The Physics.Raycast method allows you to perform raycasts in your scene to detect collisions with 3D objects.
[...further information on how to use it, including an accurate code example pulled from the docs]
This just drastically reduces time-to-solution, especially when you consider you can lazily leave out information and still get a good response.
In short, I treat it as though each session is a fine-tuned search engine and get a lot of value from it, but it doesn't completely replace forums or Youtube videos, for one it can't argue with itself to provide conflicting but valid alternate solutions - I'd have to argue with it/ask it to produce those.
All comments shown.
Couldn't load more comments. Check your connection and try again.