Загрузка видео...

Не удалось загрузить видео

На главную

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

151,683 просмотров • 3 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Caleb Porzio
Caleb Porzio3 лет назад

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

Фото профиля Caleb Porzio
Caleb Porzio3 лет назад

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

Фото профиля Caleb Porzio
Caleb Porzio3 лет назад

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

Фото профиля Marcel Pociot 🧪
Marcel Pociot 🧪3 лет назад

Welcome to the AI team

Фото профиля Caleb Porzio
Caleb Porzio3 лет назад

Bahaha

Фото профиля Tony Lea
Tony Lea3 лет назад

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

Фото профиля Caleb Porzio
Caleb Porzio3 лет назад

Haha dope

Фото профиля Aaron Francis
Aaron Francis3 лет назад

Haha dude this is so clever

Фото профиля Caleb Porzio
Caleb Porzio3 лет назад

wew!

Фото профиля MattStopa
MattStopa3 лет назад

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.

Похожие видео