4 ms·
Q: Please write me a function that makes a couple of text edits and a button. A: Certainly! Here is a function that makes a couple of text edits and a button.
by mike_hearn 3y ago
Q: Please write me a function that makes a couple of text edits and a button.
A: Certainly! Here is a function that makes a couple of text edits and a button.
function renderForm() {
var edit = document.createElement('input');
// The rest of the code is similar.
}
- cookie_monsta 3y agoI don't get what's lazy about this. Is it because it's not appending the elements?
- mike_hearn 3y agoThe code snippet is literal - the model will actually write out a comment with something like "// TODO: Implement the rest" instead of actually doing it. I had a colleague complain to me the other day that he'd asked GPT to help him with a trivial reformatting task and it had said something like "I can't do that but I can guide you on how to do it".
- cookie_monsta 3y agooh, haha - I thought that was your abbreviation agreed. that's pretty "lazy"