Jim Cheung

Thursday, March 30, 2023

I've been using chatgpt bots more often and google less frequently.

chatgpt understands the context, that's is important. many times I won't get the right answer from the first answer, but you can keep "fine-tune" it until you got the correct one, without keep repeating what you've said (unlike googling)

for example, I asked it

create a boilerplate html to use this line: "import { html, render } from 'https://unpkg.com/htm/preact/standalone.module.js'"

then followed up with:

use react instead of preact

I got a html that didn't work, but I just feed it the error message:

"https://unpkg.com/htm/react/standalone.module.js" is 404

then got the answer but with another error:

html is not a function

this time works but with a warning, so I asked it to fix it:

Use createRoot instead.

finally I got a working version without errors or warnings, comparing googline html is not a function and use createRoot instead, you'll need to put lots of extra keywords in the query and checked every links in the result. no I'm not going back to google search.

I take it as a useful tool rather than a threat to my job security, it significantly improved my efficiency, I can delegate dummy tasks to it and I kept me focus on the real problem.

I think the next 1 or 2 years will be exciting.

Blog Archive