Live data from Hacker News

Gemini 2.5 Pro Preview

developers.googleblog.com

191–200 of 728 posts

Re: Gemini 2.5 Pro Preview

#191
post #52

Earlier quoted context omitted.

It also does super defensive coding. Not that it's a bad thing in general, but I write a lot of prototype code.

Production quality code is defensive. Probably trained on a lot of google code.

Depends on what you mean by "defensive". Anticipating error and non-happy-path cases and handling them is definitely good. Also fault tolerance, i.e. allowing parts of the application to fail without bringing down everything.

But I've heard "defensive code" used for the kind of code where almost every method validates its input parameters, wraps everything in a try-catch, returns nonsensical default values in failure scenarios, etc. This is a complete waste because the caller won't know what to do with the failed validations or thrown errors, and it's just unnecessary bloat that obfuscates the business logic. Validation, error handling and so on should be done in specific parts of the codebase (bonus points if you can encode the successful validation or the presence/absence of errors in the type system).

Re: Gemini 2.5 Pro Preview

#192

Usually don’t believe the benchmarks but first in web dev arena specifically is crazy. That one has been Claude for so long, which tracks in my experience

I'm wondering when Claude 4 will drop. It's long overdue.

I was a little disappointed when the last thing coming out of Anthropic was their MAX pricing plan instead of a better model...

Re: Gemini 2.5 Pro Preview

#193

I keep hearing good things about Gemini online and offline. I wrote them off as terrible when they first launched and have not looked back since. How are they now? Sufficiently good? Competent? Competitive? Or limited? My needs are very consumer oriented, not programming/api stuff.

Bard sucked, Gemini sucked, Gemini 2 was alright, 2.5 is awesome and my main driver for coding these days.

Re: Gemini 2.5 Pro Preview

#194
post #11

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.

I have a strong sense that the comments are for the model more than the user. It's effectively more thinking in context.

Re: Gemini 2.5 Pro Preview

#196

My 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…

I've noticed that models that can search internet do it a lot less because I guess they can look up documentation? My annoyance now is that it doesn't take version into consideration.

Re: Gemini 2.5 Pro Preview

#197

Why can't they just use version numbers instead of this "new preview" stuff? E.g. call it Gemini Pro 2.5.1.

I take preview to mean the model may be retired on an accelerated timescale and replaced with a "real" model so it's dangerous to put into prod unless you are paying attention.

They could still use version numbers for that. 2.5.1-preview becomes 2.5.1 when stable.

Re: Gemini 2.5 Pro Preview

#198
post #11

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.

Same experience. Especially the "step" comments about the performed changes are super annoying. Here is my prompt-rule to prevent them:

"5. You must never output any comments about the progress or type of changes of your refactoring or generation. Example: you must NOT add comments like: 'Added dependency' or 'Changed to new style' or worst of all 'Keeping existing implementation'."

Re: Gemini 2.5 Pro Preview

#200
post #30

Is it possible to sue this with Cursor? If so what is the name of the model? gemini-2.5-pro-preview ? edit> Its gemini-2.5-pro-preview-05-06 edit>Cursor syas it doesnt have "good support" et, but im not sure if this is a defualt message when it doesnt recognise a model? is this a big deal? should I wait until its officially supported by cursor? Just trying to save time here for everyone - anyone know the answer?

At the bottom of the article it says no action is required and the Gemini-2.5-pro-preview-03-25 now points to the new model
Post reply on HN