I don't understand what I'm doing wrong.. it seems like everyone is saying Gemini is better, but I've compared dozens of examples from my work, and Grok has always produced better results.
[flagged]
Gemini 2.5 Pro Preview
51–60 of 728 posts
Re: Gemini 2.5 Pro Preview
#52I don't know if I'm doing something wrong, but every time I ask gemini 2.5 for code it outputs SO MANY comments. An exaggerated amount of comments. Sections comments, step comments, block comments, inline comments, all the gang.
It also does super defensive coding. Not that it's a bad thing in general, but I write a lot of prototype code.
Re: Gemini 2.5 Pro Preview
#53I don't know if I'm doing something wrong, but every time I ask gemini 2.5 for code it outputs SO MANY comments. An exaggerated amount of comments. Sections comments, step comments, block comments, inline comments, all the gang.
Tell it not to write so many comments then. You have a great deal of flexibility in dictating the coding style and can even include that style in your system prompt or upload a coding style document and have Gemini use it.
Re: Gemini 2.5 Pro Preview
#54Re: Gemini 2.5 Pro Preview
#55I don't know if I'm doing something wrong, but every time I ask gemini 2.5 for code it outputs SO MANY comments. An exaggerated amount of comments. Sections comments, step comments, block comments, inline comments, all the gang.
I've found that heavily commented code can be better for the LLM to read later, so it pulls in explanatory comments into context at the same time as reading code, similar to pulling in @docs, so maybe it's doing that on purpose?
```python
def whatever():
--- SECTION ONE OF THE CODE ---
...
--- SECTION TWO OF THE CODE ---
try:
[some "dangerous" code]
except Exception as e:
logging.error(f"Failed to save files to {output_path}: {e}")
# Decide whether to raise the error or just warn
# raise IOError(f"Failed to save files to {output_path}: {e}")
```(it adds commented out code like that all the time, "just in case")
It's terrible.
I'm back to Claude Code.
Re: Gemini 2.5 Pro Preview
#56Is there anything like Claude code for other models such as gemini?
Drop me a line (see profile) if you're interested in beta testing it when it's out.
Re: Gemini 2.5 Pro Preview
#57I don't know if I'm doing something wrong, but every time I ask gemini 2.5 for code it outputs SO MANY comments. An exaggerated amount of comments. Sections comments, step comments, block comments, inline comments, all the gang.
Re: Gemini 2.5 Pro Preview
#58Earlier quoted context omitted.
I have been asking if AI without hallucination, coding or not is possible but so far with no real concrete answer.
It's already much improved on the early days. But I wonder when we'll be happy? Do we expect colleagues friends and family to be 100% laser-accurate 100% of the time? I'd wager we don't. Should we expect that from an artificial intelligence too?
Re: Gemini 2.5 Pro Preview
#59My frustration with using these models for programming in the past has largely been around their tendency to hallucinate APIs that simply don't exist. The Gemini 2.5 models, both pro and flash, seem significantly less susceptible to this than any other model I've tried. There are still significant limitations, no amount of prompting will get current models to approach abstraction and architecture the way a person doe…