Lurker News
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.

Comments (735) 221 threads

Earlier comments
jrmann1003 replies#
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.

echelon2 replies#
It's replaced Google for the "what's that called" tool.

Google used to be good at that task, but it's sucked for the last four years or so. Whenever they gave up on search and leaned into sludge content plus ads.
ChatGPT is better than Google ever was anyway.

jhanschoo#
I hope it's going to remain that way, but the realistic cynic in me tells me that using ChatGPT to discover stuff is going to increasingly suck more now that people are going to try to target ChatGPT for SEO.
jimnotgym1 reply#
GPT is better than Google for something like, 'how do I implement nested blog post comments in Flask'

And much worse than Google for, "site:miguelgrinberg.com nested comments"
Unfortunately I don't know the equivalent of Miguel for everything I need to know, so on average I suppose GPT is better. However it also means that you may never discover the Miguel of your domain!

tbran1 reply#
Dude! I just did that search and now I'm reading Miguel's blog. Good stuff! Thank you!

Continue this thread — 1 reply

duckmysick#
It's also helpful with explaining acronyms. Something like `What does SEO mean in "Search engines with SEO are so reliant on keywords"`.
victorbjorklund#
Yea, this is great. I used it alot for this. When you kind of know what you wanna do but you dont know the technical term.

Like if you dont know it is called sharding but you know you wanna store stuff on several databases.
Me: I have a postgresql database but it has too much data in it. I wanna split the data in several databases. What is that called?
GTP: Splitting a database into multiple smaller databases is known as database sharding. Sharding is a technique used to horizontally partition large databases across multiple servers or instances in order to distribute the workload and improve performance. Each shard is typically hosted on a separate physical or virtual machine and stores a subset of the total data, allowing for more efficient queries and faster data retrieval.
Then i know what to google for

itsuka7 replies#
Since I use ChatGPT regularly, I decided to create my own client. I prefer to avoid third-party services that require privilege escalation like Grammarly and Copilot. I have developed distinct profiles for different tasks, each with its own system prompt and input method. After getting the hang of it, I plan to tweak the parameters as well. Here are some of the profiles:

Explainer: a default, general purpose Q&A. The prompt is "Explain to me like a 3rd grader. Skip prose." I plan to expand this profile to include additional communication styles, including step-by-step explanations, elaboration, and the Socratic method.
Proofreader: I use this profile to edit, simplify, and shorten any text (including this comment). I borrowed this feature from Grammarly Go, and it works by pasting the text and clicking a button.
Developer (in development): this uses a simple editor as input, with features similar to Cody/Copilot, such as adding types, naming things, summarizing, autocomplete, auditing, explaining, fixing, refactoring, and more.
Lastly, I plan to add two more profiles that are more creative and generative: Writer and Designer. They will act as private consultants/partners and assist me in brainstorming and complementing my skills in building websites.

theonlybutlet1 reply#
Thank you, I intend on stealing your phrase "skip prose", was trying to find a way to force it to exclude this whilst saving tokens.
thih92 replies#
I’m unfamiliar with gpt and tokens, what would “skip prose” change?
itsuka1 reply#
It is hinting GPT to skip generating unimportant texts such as filler words, while still maintaining coherence in the output.

For example, if I asked GPT "How to make bibimbap?" with the prompt "skip prose", it will give concise list of ingredients and instructions in about ~250 tokens [1]. Without the prompt, it would first explain what bibimbap is and then give a slightly longer instructions, totaling around ~360 tokens.
[1] A token is like a building block of a sentence - it can be a word, a punctuation mark, a number, or even a combination of words. In case you didn't know, Chat API users are charged based on the number of tokens used. So we try to keep it to a minimum.

Continue this thread — 1 reply

VierScar2 replies#
The annoying habit GPT has of restating the question as the start of the answer. "How do I write a function in JavaScript to sort a list of cities by population grouped by region?

GPT: To sort a list of cities by population grouped by region, in JavaScript, would at a high level require 3 steps...."
Super frustrating when you just want the answer without the "polite professionalism"

Continue this thread — 2 replies

barrenko#
I was reluctant in using phrases like "skip prose", because I thought it would end up in a Waluigi.
pmoriarty1 reply#
"I prefer to avoid third-party services that require privilege escalation like Grammarly and Copilot"

How do they require privilege escalation?

itsuka#
I'm sorry, I think I might have used "privilege escalation" in a confusing way here. To clarify, these services sometimes need access to the surrounding environment to enhance the AI's context and prevent misuse. For example, according to the Chrome Web Store, Grammarly may need to monitor network, mouse, and keystrokes (from non-sensitive input fields), as well as location data. Meanwhile, Copilot may require access to adjacent code or open tabs, which I believe is now configurable. As I'm not a security researcher or user of these products, I may get these details wrong.
rr8081 reply#
Are there any good open source clients you recommend? At work we're not allowed to use chatgpt so having our own would be nice.
itsuka#
Sorry, I can't recommend any other clients since I don't use them.

If your company's policy permits accessing ChatGPT through the API, you can assess clients from awesome lists like this one: https://github.com/humanloop/awesome-chatgpt I've seen companies use Slack bots since they are easy to implement/integrate with.

r0b051 reply#
Fascinating idea.

Can you share some code or screenshots of your client?

r0b05#
I really like your UI design! There is something about it that is soothing.
itsuka#
Nice! I would like to see more examples out there that do not limit the experience to only a text/chat interface. It is becoming tiring to repeatedly add extra prompts and format the input/output manually.

I found that some workflows can be executed more efficiently by using GUI/form controls (like the "simplify" button for proofreader). Node-based UIs would also be ideal for some design-related tasks. Builders have already started experimenting with these, I guess, and I'm excited to see what they come up with.

e-brake1 reply#
For compliance, I have been using it to complete cheesy "security training" videos and quizzes that we are forced to watch in the organization for insurance purposes. The videos are so bad, the training is ineffective anyways. We used to load them all on mute at the same time every quarter, click through as fast as possible to get them out of sight, which is considered a metric for how valuable the videos are (how much we need to improve). ChatGPT usually gets it right! Hooked up to Playwrite.
pishpash1 reply#
How does this work exactly? What is ChatGPT doing for you?
e-brake1 reply#
For each cheesy training video, playwright opens the page, runs a timer, clicks an element to load the quiz page, copies the question and possible answers, and sends them to the GPT-4 API for the best possible solution, clicks on the element that was answered as the most likely solution, and repeats. Since these video/quizzes are recurring and terrible, it was worth automating
inimino1 reply#
There's something fascinating about the fact that an organization collectively made the decisions that lead to this outcome.

Continue this thread — 1 reply

olalonde3 replies#
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

jmknoll3 replies#
Completely off-topic, but do you like prisma, and how are you using it (scale, complexity, solo vs team, etc).

I toyed around with it a while back, and it looked potentially awesome, but different enough that I was worried about using it on a work project in case it failed in some use case.
Im so sick of the SQL ORM situation in Typescript, but Prisma might have an answer.

olalonde#
It's a solo project, CRUD stuff, but having used pretty much all JavaScript/TypeScript ORMs in existence, I can say that Prisma is way ahead of the competition. I would personally recommend it. A traditionally cumbersome and annoying thing about trying a new ORM is that you basically have to re-learn a pseudolanguage for building SQL queries but that hasn't been an issue this time, thanks to ChatGPT. So overall, happy with Prisma and plan to keep using it.
panzi#
Prisma has this one glaring issue: https://github.com/prisma/prisma/issues/10649

Segmentation fault with NodeJS 18. Its about prisma having linked a different version of OpenSSL than NodeJS. A workaround is to use the "binary" engine, meaning you run another process, talk via IPC to that, and that then talks to the DB, which is ridiculously roundabout.
But this issue is finally worked on, so once that is fixed its good.

bottlepalm#
It's good, but verbose, you can't select nested objects by just doing lesson.mapped.sections.course .. etc.. you have have to do something like

    lesson: {
        select: {
            id: true,
            slug: true,
            title: true,
            mapped_sections: {
                select: {
                    id: true,
                    slug: true,
                    section: {
                        select: {
                            id: true,
                            title: true,
                            course: {
                                select: {
                                    id: true,
                                    slug: true,
                                    title: true
lisasays1 reply#
Asked it to generate pretty standard Terms of Service for an app I'm working on.

So you're using it generate a legally actionable document. Is this a good idea?

olalonde1 reply#
Yes. I got a cheap AI lawyer if someone sues me, all good. All jokes aside, the alternative was to not have a "Terms of Service", so fairly sure it's better than nothing.
lisasays5 replies#
Fairly sure it's better than nothing.

Until it isn't. Live and learn, as they say.

Continue this thread — 5 replies

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

You inspired me to try it for finding a book I can't quite remember the title of. Unfortunately no joy. Still, for the amusement of anyone who is interested, or anyone who might be able to help me with this book:
---
Mindcrime: What was that horror novel from way back when, about the time traveling demon hound?
ChatGPT: It's possible that you're thinking of the horror novel "The Hound" by H.P. Lovecraft, which was first published in 1924.
In the story, two grave robbers become obsessed with obtaining a certain artifact from a tomb in Holland. After obtaining the artifact, a small bronze statuette of a hound, they begin to experience strange and terrifying visions. The hound appears to come to life and stalks them through their nightmares.
Later, one of the grave robbers travels to Egypt and discovers that the artifact was made by a sinister and ancient cult, and that the hound is actually a demon summoned from another dimension. The hound then follows the man back to his home in England, where it continues to torment him until he meets a gruesome fate.
It's worth noting that there have been many horror novels and stories featuring time-traveling demon hounds over the years, so if "The Hound" isn't the specific book you're thinking of, there may be another that matches your description.
Mindcrime: No, it was more recent than that. I think from sometime between the late 1980's to mid 1990's. I think the word "hound" might have been in the title.
ChatGPT: Thank you for the additional information! The book you may be thinking of is "The Hound of the Baskervilles" by Arthur Conan Doyle. Although it's not a horror novel, it's a detective story featuring the famous detective Sherlock Holmes and his companion Dr. John Watson investigating a supernatural curse and a demonic hound that is terrorizing the Baskerville family on their estate in Dartmoor.
"The Hound of the Baskervilles" was first published in 1902, but it has been adapted and retold in various forms over the years. There may be a horror novel that is a retelling or adaptation of the original story that you're thinking of, but without more specific details, it's hard to say for sure.
Mindcrime: No, it's much more contemporary than that.
ChatGPT: I apologize for the confusion. Let me try to narrow it down further. Do you remember any other details about the book? For example, do you remember the author's name or any other specific plot points or characters?
Mindcrime: There was some stuff about an airport or airplane near the end.
ChatGPT: Thank you for the additional detail! The book you might be thinking of could be "Watchers" by Dean Koontz.
"Watchers" is a horror novel that was published in 1987. The story follows Travis Cornell, a man who is hiking in the mountains when he stumbles upon a genetically engineered creature known as "The Outsider." The Outsider is a highly intelligent dog with extraordinary abilities that has escaped from a government laboratory.
Cornell takes the dog under his wing, but soon discovers that a ruthless government agent is after the dog and will stop at nothing to retrieve it. The novel reaches its climax at a local airport, where a final showdown takes place between the agent and the dog.
While "Watchers" does not feature a time-traveling demon hound, it does involve a genetically engineered dog that could possibly fit your description.
Mindcrime: No, it wasn't by Dean Koontz. And time travel was definitely a plot element.
ChatGPT: Thank you for letting me know. I apologize for not being able to find the book you are thinking of. Without more specific details, it's difficult to narrow down the possibilities. If you remember any other details about the book, please don't hesitate to let me know and I'll do my best to help you identify it.

nneonneo1 reply#
Have you tried asking a story-identification question on https://scifi.stackexchange.com/? I've seen quite a few questions on there get answered with even the most obscure books or movies, and your question should fit right in on that site.
mindcrime#
I've posted to a couple of places, but I don't remember exactly where all now. I think there was one sub-reddit and maybe something on Twitter or Facebook. I don't think I've tried scifi.se. I guess that is worth a shot. Thanks for the suggestion!

Load more comments