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. Scene_+05[view] [source] 2025-05-06 15:36:38
>>ranyum+Z3
It also does super defensive coding. Not that it's a bad thing in general, but I write a lot of prototype code.
◧◩◪
3. prpl+c7[view] [source] 2025-05-06 15:48:57
>>Scene_+05
Production quality code is defensive. Probably trained on a lot of google code.
◧◩◪◨
4. monteb+md[view] [source] 2025-05-06 16:19:11
>>prpl+c7
Does the code consist of many large try except blocks that catch "Exception", which Gemini seems to like doing, (I thought it was a bad practice to catch the generic Exception in Python)
◧◩◪◨⬒
5. hnuser+jk[view] [source] 2025-05-06 16:59:21
>>monteb+md
Catching the generic exception is a nice middleground between not catching exceptions at all (and letting your script crash), and catching every conceivable exception individually and deciding exactly how to handle each one. Depends on how reliable you need your code to be.
◧◩◪◨⬒⬓
6. monteb+O51[view] [source] 2025-05-06 22:20:54
>>hnuser+jk
Hmm, for my use case just allowing the lines to fail would have been better, (which I told the model)
[go to top]