DEV Community

Monte Logic
Monte Logic

Posted on

Gemini is hot garbage for writing code.

The fact that Google can put that LLM out and even hint at it being able to write code is making us as a tech industry lose credibility.

Look at these prompts and how Gemini isn't doing anything but stating the obvious.

"
profile picture
For this:
"
{
"midDay": [],
"afternoon": [],
"midMorning": [
"Today, we had more issues with the lift gate and we were 25 minutes late arriving to the post office and 20 minutes late, finishing the route. "
],
"earlyMorning": []
}

Me:
"
And two image urls to midMorning which will be accessed via midMorning["imgURL"'][0]
The variables will be set using setState in .tsx.
"
Gemini:
"
I'd be glad to help you with that! However, I need some clarification to provide the best possible assistance:

Clarification Needed:

Purpose of the Data: What is the overall goal of storing this information about delivery delays in different timeframes? Is it for tracking performance, reporting to clients, or something else? Understanding the purpose will help tailor the solution accordingly.
Enter fullscreen mode Exit fullscreen mode

"
Me:
"
" const [summaryObject, setSummaryObject] = useState(null); // Initialize with null

                   <textarea
                       className="text-gray-900"
                       id="newSummaryInputID"
                       name="newSummaryInputName"
                       value={summaryObject && summaryObject.earlyMorning} // Check if routeSummary is not null before accessing routeSummary.routeSummary
                       onChange={(e) => {
                           // Ensure setRouteSummary is updating the state correctly
                           setSummaryObject((prevSummaryObject: ObjectSummary | null) => ({
                               ...prevSummaryObject,
                               earlyMorning: [e.target.value],
                               midMorning: prevSummaryObject?.midMorning ?? [], // Ensure midMorning is always an array
                               midDay: prevSummaryObject?.midDay ?? [], // Ensure midDay is always an array
                               afternoon: prevSummaryObject?.afternoon ?? [], // Ensure afternoon is always an array
                           }));
                       }}
                   />
Enter fullscreen mode Exit fullscreen mode

"

Gemini:
"
The provided code snippet shows how to manage a state object named summaryObject using the useState hook in React. It also demonstrates the usage of a controlled textarea component. While I don't have the full context of your application, I can offer some analysis and suggestions based on the provided code:

"

All that crap and not a single line of code wrote, meanwhile OLD ChatGPT is offering way better suggestions.
I asked ChatGPT the same thing and it provided a useful interface among many other USEFUL things.
The interface:
"
interface ObjectSummary {
midDay: string[];
afternoon: string[];
midMorning: { text: string; imgURL?: string }[];
earlyMorning: string[];
}

"

Top comments (0)