zlacker

[return to "Gemini 2.5 Pro Preview"]
1. ranyum+Z3[view] [source] 2025-05-06 15:30:36
>>meetpa+(OP)
I 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.
◧◩
2. Benjam+j5[view] [source] 2025-05-06 15:38:07
>>ranyum+Z3
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?
◧◩◪
3. koakum+q7[view] [source] 2025-05-06 15:50:14
>>Benjam+j5
No, it's just bad. I've been writing a lot of Python code past two days with Gemini 2.5 Pro Preview, and all of its code was like:

```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.

◧◩◪◨
4. Neutra+7f[view] [source] 2025-05-06 16:29:15
>>koakum+q7
I'm seeing it trying to catch blind exceptions in Python all the time. I see it in my colleagues code all the time, it's driving me nuts.
◧◩◪◨⬒
5. des429+vu9[view] [source] 2025-05-10 01:21:15
>>Neutra+7f
What’s a blind exception?
[go to top]