2 ms·
Coding assistance. "JavaScript function to use fetch() to run a HEAD request against a URL and return the headers" - I use little prompts like that dozens of ti
by simonw 3y ago
Coding assistance. "JavaScript function to use fetch() to run a HEAD request against a URL and return the headers" - I use little prompts like that dozens of times a day.
Running Python micro-benchmarks to answer questions about which approach is faster, often involving SQLite. I wrote about that here: https://simonwillison.net/2023/Apr/12/code-interpreter/ https://simonwillison.net/2023/Apr/12/code-interpreter/
Lots of dumb little calculations, effectively using ChatGPT Code Interpreter mode as a calculator. I like being able to review the code it wrote - it ends up being a bit faster than me running the calculations myself in a Python notebook.
OCR. I paste screenshots directly into ChatGPT and ask it to extract text from them - great for things like producing alt= text.
Brainstorming. "Twenty ideas for a Datasette plugin to help with investigative data journalism", that kind of thing.
Naming things - another form of brainstorming. See https://til.simonwillison.net/gpt3/picking-python-project-name-chatgpt https://til.simonwillison.net/gpt3/picking-python-project-na...
I use ChatGPT Voice mode when I'm walking my dog, which means I can have an hour long brainstorming conversation, effectively a rubber duck that can talk back to me - except my weird audio AI assistant can also look things up on the web for me and even write and execute test code without me even having to take my phone out of my pocket.