Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

🪄 What if you could write code that doesn't exist yet and it just... worked?

151,683 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Caleb Porzio
Caleb Porziovor 3 Jahren

How it works: - I intercept the static call to "Ai" using PHP's magic: callStatic() - I send OpenAI Codex the the file you used it in as a prompt - I tell it to "write the implementation" - I take that implementation, eval() it the first time, and put it in the class for later

Profilbild von Caleb Porzio
Caleb Porziovor 3 Jahren

If you're scared of an AI injecting code into your app: - No code generation will happen in production (only locally) - All code is stored in a single "Ai.php" file so it's not bled throughout your codebase - The code is easily discoverable, editable, and deletable - Also, you should be lol

Profilbild von Caleb Porzio
Caleb Porziovor 3 Jahren

Also also, this is just a random toy I made for fun.

Profilbild von Marcel Pociot 🧪
Marcel Pociot 🧪vor 3 Jahren

Welcome to the AI team

Profilbild von Caleb Porzio
Caleb Porziovor 3 Jahren

Bahaha

Profilbild von Tony Lea
Tony Leavor 3 Jahren

AI::tellCalebThisIsAwesome() Dude! This looks amazing 🤯

Profilbild von Caleb Porzio
Caleb Porziovor 3 Jahren

Haha dope

Profilbild von Aaron Francis
Aaron Francisvor 3 Jahren

Haha dude this is so clever

Profilbild von Caleb Porzio
Caleb Porziovor 3 Jahren

wew!

Profilbild von MattStopa
MattStopavor 3 Jahren

I used chat GPT but With a comment I could just feed what I want it to generate You my friend have discovered the future of coding. Honestly the only thing to do is just the integration layer.

Ähnliche Videos