Yann Leflour Profile picture
Mar 22 β€’ 13 tweets β€’ 5 min read β€’ Twitter logo Read on Twitter
🏁 Like a plumber would say, "Let's-a-go" with part 5

This time, I'll focus a bit more on the development side cause that may be why you've come here in the first place πŸ˜—

1/13
#chatgpt's been great to pop up new projects (albeit some outdated methods once in a while)

But now that we're getting to the meat of software making, which is actually more than following a gettin' started page, a couple of things are happening

Time for numbering #️⃣

2/13
1️⃣ I need to provide more context more often

Yep, the large data set it's been trained on is not enough. Now it needs to be aware of local context which means:

πŸ”Έ Reminding it of folder structure
πŸ”Έ Giving files content
πŸ”Έ Giving dependencies content
πŸ”Έ Fetching it doc

3/13
πŸ‘ΆπŸ» Let's add two actions
- Copy directory as prompt
- Copy file content as prompt
πŸ€– Erm, I'll put it there, but I'm unsure
πŸ‘ΆπŸ» Here's the git list-files so you can fix this. Better be the last time I do it manually!
πŸ‘΄πŸΎ Narator: "It was"

4/13
Now those prompts are saving me hours πŸ‘Œ

But there is one issue with gpt4 web

it
it is
it is so
it is so damn
it is so damn slow

πŸ₯± Input is ~100 lines. Response is well above that. So it takes minutes before getting my modified file

πŸ€” May need to change my approach

5/13
2️⃣ One function = one file

Yep, the fastest way to remain productive while still using #gpt4. I'm now doing something I loathe: splitting my code into as many small files as I can.

But it allowed me to implement an efficient "CODE_REVIEW" action 🎬

6/13
CODE_REVIEW is simple. It's like feeding it the content of a file, but it has to respond back with a fix for every "FIX_ME" comment

Works wonder with #gpt4, but #gpt3.5 was left behind at this point

PSA: I know of other models; I'm forcing myself to use #gpt for this

7/13
3️⃣ Fetching dependency context is a drag

#gpt4 works wonders when provided with Typescript typings, but have you looked at those .d.ts files

Well, let me tell you, the webview didn't like it 🫠

8/13 Chat GPT Error: The message...
So I had to copy-paste the entire .d.ts, filter out the declarations manually, add a πŸ‘‡

πŸ‘ΆπŸ» Here are the typings for "openai"
πŸ€– Got it
πŸ‘ΆπŸ» CODE_REVIEW
πŸ€– Here ya go
πŸ‘ΆπŸ» πŸ‘Œ

If you know me by now, yes, this feels like a new tool I'll need 😘

9/13
But we'll get to that later πŸ•°

Cause I'm thinking of creating a blog. Gotta spruce up a place for Twitter haters, right?

But I'm not some commoner, and I have some standards on the tooling I need for the job 🎩

10/13 Me asking chat gpt what's t...
I want my blog

β˜‘οΈ Markdown for writing
β˜‘οΈ Custom react components
β˜‘οΈ A pre-built template
β˜‘οΈ Pretty code blocks rendering

πŸ€– You'll want "remark" with "next-blog-starter" as template

Wait up, what's "remark"?

11/13
4️⃣ Focus on the result, not the means

Yep, I just gave #gpt4 a standard. And because I didn't tell it "How", it was free to give me some recommendations

And after vetting remark I can say that it's a pretty good one too. So in the future, I'll try to stay more permissive

12/13
OK, blog is not up yet as it requires a lot more work, and it's definitely not a priority

Although, I might try to get #chatgpt to do a whole lot more to set it up in the future

So If you want to see what's next, you can πŸ”” and help me ❀️ that first Tweet

13/13

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Yann Leflour

Yann Leflour Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @yleflour

Mar 28
πŸ€– My LLM Week 1 & 2 πŸ€–

#gpt4 was only publicly released 14 days ago

Yet, the LLM world is moving really fast, and people are noticing that it's an "iPhone moment"

But if you haven't been able to play catch up, here are the 3 top topics that caught my attention πŸ‘‡
1/ The paper on jobs impacted by #gpt dropped
And #llm replacement is already starting and hitting some

reddit.com/r/blender/comm…
Read 10 tweets
Mar 27
🏁 On with S02E01 of my saga for the AI-enabled developer

In this issue, I want to talk a bit about the elephant in the room 🐘

A topic that's not really mentioned for #gpt4's web users cause you need to preserve the magic πŸͺ„

Yep, I'm gonna talk about max context size πŸ‘‡

1/13
☝️ #gpt4 doesn't remember everything

Have you heard of 8K and 32K contexts?

Apart from pricing πŸ’Έ, do you know what it really entails?

It means that your chat actually has a short-term memory 😢

2/13 Image
If you are a #gpt pro user, have you noticed that it keeps forgetting rules from time to time?

And have you noticed that the longer the messages & response, the faster it seems to forget?

Well, that's because of context limitations

3/13
Read 13 tweets
Mar 24
While I went off track once again, I managed to ship something πŸŽ‰

Here is the content of pAIRprog chrome 0.0.1:
πŸ”Έ Copy Github issue + answers into prompts
πŸ”Έ Copy StackOveflow issue + answer into prompts

It's under review, but it'll drop here: chrome.google.com/webstore/detai…

1/10
Of course, #gpt4 is coding most of it

But I'd say it's a 70% / 30% effort split this time

It provided a lot of outdated answers
> So I needed to feed it Github issues
> Which is tedious
> Which is why I'm making this extension πŸ™ƒ

But I learned a lot along the way πŸ‘‡

2/10
πŸ’‘ #gpt4 "knows" the HTML of popular sites

I asked it to write code to add a "copy as Prompt" link for @StackOverflow

I remained as vague as possible, yet it wrote me the right CSS classes in the selector 😦

3/10 ImageImageImage
Read 10 tweets
Mar 23
🏁 And on with part 6

Let's take a turn and work on the Chrome Extension cause I believe I'll be getting it out way before the VSCode one

I'm not waiting for the web to get promptful so I'm taking maters into my own hands

1/11
As always, #gpt4 is setting up and creating everything for me admirably. Although I see some questionable configs in eslint, prettier and tsconfig if it tries to provide them

Oh πŸ’© !

2/11 Image
I've been keeping the same chat window to keep as much context as possible. But because of this, I now have to deal with resets

I need to be able to get a new chat window up to speed as quickly as possible ⏱

3/11
Read 11 tweets
Mar 21
🏁 On with Part 4 of my #gpt4 saga

Between pricing (I'm cheap as f😡k) and rate limiting, I'm now spending half my time writing

Truth is, I quite enjoy it so let's gooooo πŸ‘‡

1/15
So at least the #GPT4's API is available for prompting.

But I don't like the playground

πŸ‘ΆπŸ» I need pairprog-webview, nextjs, tailwind to chat with your own API
πŸ€– Sure thing
πŸ‘΅πŸ» Wow, this API call looks quite outdated and doesn't work
πŸ€– ermmm...

How do I solve this? πŸ€”

2/15
Open up platform.openai.com/docs/api-refer…

Copy, paste into @euangoddard ✨magnificent✨ "Paste as markdown page", copy back, paste to #gpt4

πŸ‘ΆπŸ» Here's the updated doc
πŸ€– K boss
βœ‚οΈ > πŸ“‹ > ▢️

✨ It works ✨

3/15
Read 16 tweets
Mar 20
I'm on an adventure to get #gpt4 to code its own VSCode extension πŸ—Ί

Starting from scratch with Language Models, I'll share every discovery, insight, or rambling that crosses my mind along the way.

So, if you're interested, here's a link to every part πŸ‘‡
1️⃣ The honeymoon part

In which I start my journey and quickly diverge into publishing a full website using mostly #gpt4 prompts
2️⃣ Leaning into prompts

In which I make the mistake of continuing my part 1 thread and quickly diverge into some insights about #gpt4 prompting, and the parallels to standards in #leanengineering
Read 9 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(