#coding assistant

1 messages · Page 1 of 1 (latest)

mental pelican
#

Has anyone had much success with getting open AI to write code for an entire file?

stoic igloo
#

Elaborate further please

thorny nest
#

@mental pelican under GPT4, yes

blazing hill
#

Yes

teal fossil
#

I've successfully built and sold a bunch of art production tools using GPT with no coding knowledge. You can see them on my channel here: https://www.youtube.com/@glowshedfilms/videos

mental pelican
#

Is there a way to make sure chstgpt only provides code and not explainer text as well? I’d like to only use the code. Here’s the output: Based on the given code snippet, it seems the issue lies in the concatenation of the title with the string 'hello' while creating gem. To debug and find the issue, I would suggest adding console.log statements to log the values of title and gem. Here is the modified code with console.log statements:

function Todo({ todo }) {
    const { id, title, completed } = todo;
    console.log("Value of title:", title);

    const gem = title + "hello";
    console.log("Value of gem:", gem);

    const h1 = <h1> hey there{gem}</h1>;
    const text = completed ? <strike> {h1} </strike> : h1;
    return <div data-testid={`todo-${id}`}>{text}</div>
}

export default Todo;

By adding these console.log statements, you should be able to identify the root cause of why 'Mileshello' is being returned instead of 'Miles'. Once you see the values logged in the console, you can further investigate and fix the issue.

ripe shadow
#

yes

forest forum
#

I got just what you're looking for. In fact I was looking for the right place to share this and this looks like it.

I wrote a powershell / bash script that outputs the contents of my files using this template:

These are the current project files:
"""
<Each file listed with full file path>
"""

<Enter what you want to do here>

Be creative and think out loud, but ensure the end results are full files that are production ready after copy-paste.


That last part works pretty well at getting full files back. GPT just needs to have all the information it needs to do the work is all.