3 ms·
I can't share my code, but I do things like "here is my Livewire component and here is the blade view, remove these three properties and replace it with a Carbo
by ahofmann 4y ago
I can't share my code, but I do things like "here is my Livewire component and here is the blade view, remove these three properties and replace it with a Carbon object". And then I paste like 400 lines of code and walk around in my office. After a minute, I have sometimes 100% working code (PHP but also the frontend), that I can paste back in PHPStorm. Sometimes GPT-3.5 can do this, but sometimes I need to use GPT-4, because it "understands" much better what I want. Also, it sometimes optimizes my code, because it "saw" something, that I have not thought of. Github copilot was kind of cool, but this is magic and really helpful.
It also just writes my unit tests. Prompt is "here is my code (pasted a few hundred lines of code), write tests."
- jacknews 4y agoYes I played briefly with copilot and it was amazing in some ways, and useful, but perhaps not revolutionary. WHat you describe seems quite different. Is the chat window still the way, there must be good ide plugins by now or soon?
- ahofmann 4y agoI think they did something with copilot x and vscode, where they have a chat like window in the IDE. But I'm using PHPstorm and since I mostly write laravel code, nothing is better than PHPstorm with the laravel idea plugin. I also think that the chat mode is the right way to work with an AI (as long it is so slow, like it is now), so I don't mind the copy-paste workflow.
- joshspankit 4y agoIt’s trivial to write a tool that interacts with the “ChatGPT 4” API to do exactly what you’re thinking of. The tools are coming faster than you’d think, it’s just that most of the IDEs need a couple months to go through UI design, QA, testing, debugging, documentation, and release.