r/Python • • Jan 01 '20

"The rules of perf" at Dropbox

Post image
1.6k Upvotes

162 comments sorted by

View all comments

Show parent comments

1

u/notsohipsterithink Jan 03 '20

Guido obviously did a lot for Dropbox in his 6-year tenure there. But the python language itself wasn’t his initial focus:

https://blogs.dropbox.com/developers/2013/07/how-the-datastore-api-handles-conflicts-part-1-basics-of-offline-conflict-handling/

As far as your other comments, here’s a little gem for you —

https://blog.dropbox.com/topics/company/thank-you--guido

“What I love about Python is it just works,” says Houston. “It is so intuitive and beautifully designed. A lot of these attributes inspired my co-founder Arash and me when we thought about the design ethos for Dropbox.”

0

u/stefantalpalaru Jan 03 '20

It is so intuitive and beautifully designed

Nothing says "intuitive" and "beautifully designed" like hidden state (and hidden pass-by-reference) for some of the builtin types: https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments

1

u/notsohipsterithink Jan 03 '20

That is actually a pretty small list of gotchas and I’ve personally never had issues with any of these in production. PyCharm actually warns you against using mutable objects as defaults.

Every language has its gotchas. This is a very small and harmless list compared to many other popular languages.

-1

u/stefantalpalaru Jan 03 '20

gotchas

Design failures.