mint_tamas

joined 2 years ago
[–] mint_tamas@lemmy.world 7 points 4 days ago (1 children)

There is no way Google would sell Chrome. But you can bet at least a thousand engineers are working on bolting Gemini onto it right now.

[–] mint_tamas@lemmy.world 2 points 2 weeks ago (1 children)

I think pythonic is more important than performance and I would still choose that version over a try-catch block, were it slower. Being pythonic means it represents a commonly understood pattern in Python code, therefore it is more efficient in communicating intent.

[–] mint_tamas@lemmy.world 2 points 2 weeks ago (3 children)

Apart from the quote from the zen of python, does this really make your code better though? You will end up writing 4-5 lines with an extra level of indentation. The code does the same, but has worse performance and communicates the intent poorly (compared to the “pythonic” version).