6 ms·
"I used the GPT-4o model to generate the code for LetterDrop. That means the code is generated by the AI model, and I only need to provide the prompts to the mo
by gkdktstjtsjfy 2y ago
"I used the GPT-4o model to generate the code for LetterDrop. That means the code is generated by the AI model, and I only need to provide the prompts to the model. This approach is very efficient and can save a lot of time. I've also recorded a video to show how to create the LetterDrop project using the GPT-4o model.
That also means you can easily customize the code by changing the prompts. You can find the prompts in the CDDR file."
???????
- altairprime 2y ago> ??????? Please clarify what ??????? means here? You’ll find us willing to hear out your point of view, but first you’ll have to provide it.
- cuu508 2y agoThe technique for producing the code is so unconventional, the grandparent commenter is unsure if this is a serious attempt, a joke, or a stunt.
- j16sdiz 2y agoThis is from the "How to contribute?" section in readme. Personally, I found it unbelievable. The author think contribute should change the prompt instead of the code.. To my best knowledge, these kind of code generation are non deterministic. This make it impossible to audit for correctness.
- dvt 2y agoI think code generation is, generally speaking, pretty awful, but contributing to an LLM prompt is kind of an interesting evolution of software design. With that said, I don't really think it saves a lot of time (the author's Youtube videos[1] are literally like 10+ hours of messing with prompts and copy-pasting code), whereas the product in itself isn't particularly complicated. [1] https://www.youtube.com/playlist?list=PL21oMWN6Y7PCqSwbwesD4_wmXEVSeeQ7h https://www.youtube.com/playlist?list=PL21oMWN6Y7PCqSwbwesD4...
- j16sdiz 2y agoThis is interesting as an experiment, but a awful way to do production code.
- khold_stare 2y agoAnd the code is godawful. Just look at this mess for internationalization: https://github.com/i365dev/LetterDrop/blob/main/app%2Fsrc%2Findex.ts#L173-L431 https://github.com/i365dev/LetterDrop/blob/main/app%2Fsrc%2F... . The code is unmaintainable by a human - there is a ton of unnecessary duplication, a gigantic html string instead of something like tsx, etc etc. I don't know how the OP can trust this output - I certainly don't.
- garylkz 2y agoAren't that basically all those web framework that we've been using (except that it's worse and less maintainable)? The code generated is very hard to be maintained by human unless you're very knowledgeable and knows what specific things to change (since generally we only interact on framework level unless there's some specific requirements, like how the author proposed to "modify the prompt" instead of the generated code) That said, I don't think that the so called "prompt based" cough cough engineering is viable at current state, or anytime soon.
- gavmor 2y agoWow, CSS in a style tag in a string in try block in an anonymous function all declared right there in index.ts—no units, to say nothing of tests! Would be a huge nuisance to maintain.
- croes 2y agoIsn't GPT4 non deterministic? So the same prompt won't necessarily give the same result
- 7bit 2y agoYes, it is non-deterministic from our point of view, because OpenAI does not let us set the seed.
- ukuina 2y agoSure you can: https://platform.openai.com/docs/api-reference/chat/create#chat-create-seed https://platform.openai.com/docs/api-reference/chat/create#c... It does not guarantee determinism, though, because of the nature of GPT4o's optimizations.
- lbill 2y agoThat was unclear for me too, so I opened an issue (the very first of the project, yay!). The instructions have been updated, they might be a bit clearer now: direct contributions to the code are welcome.