Toot

Written by Jon Lasser is Hanging in there on 2025-01-24 at 02:36

I think I found a bad code smell today, but I wonder if there's a good reason I can't fathom, because the smells were stacked three deep.

Smell the first: instead of just writing mydict[mykey] = myvalue, every new key written to the dict was via a function update_dict, like so:

mydict = update_dict(mydict, mykey, myvalue)

1/3

=> More informations about this toot | View the thread | More toots from disappearinjon@wandering.shop

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113881000721780911
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
220.871222 milliseconds
Gemini-to-HTML Time
0.329565 milliseconds

This content has been proxied by September (3851b).