top | item 40412050

(no title)

mholubowski | 1 year ago

Hi! Why does it work best with Python? Should I even bother if it’s for a non python project? (In this case, a WordPress plugin).

Thank you!

discuss

order

fragmede|1 year ago

There's just so much python code up on the web to train from, that LLMs are really good at it, relative to something with fewer examples. However, WordPress uses PHP, and there's also plenty of PHP available online, so it's pretty decent at that too. I just used Devon to create a trivial Wordpress plugin, so you can give it a shot, however because it won't be able to run that code, you can't tell it to test the code.

This is a huge shortcoming. When asking ChatGPT to generate python code, it won't always get it right, but you can ask it to keep trying until the code works. since it can't do that in PHP, it'll be a bit more work. Though, depending on how well you're able to take the output and fix it yourself, it could be enough to get the plugin written.

The value isn't in having everything done for you - the technology isn't there yet, imo. it's in making you more effective. If it generates a page of code and you have to tweak a bunch of it to get it to work right, you still come out ahead. For other work, it'll write a bunch of useless code and you're better off without it, so you have to know when to use it and when not to.

can16358p|1 year ago

Yup. I was going to ask the same. If there was wide language support I'd love to try that, but as a non-Python programmer the use case is limited for me.

However I might use it as in places where Python might actually be the best way to go for a script, yet I'd have picked another language as I don't know Python. Then I could simply ask it to create whatever I need, and read over the code to actually learn some Python perhaps.

smokeydoe|1 year ago

It looks like the reason is because it’s trying to run the code it generates