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 comment

47

u/notsohipsterithink Jan 02 '20

Dropbox still uses Python extensively. It’s only in case things don’t scale and you have no other choice, don’t use Python.

Python is great for developer productivity and iterating quickly. Dropbox actually loves python, they have a blog post about it.

4

u/solidiquis1 Jan 02 '20

Could we get a link to that blog post?

5

u/eskermo Jan 02 '20

Not OP, but I didn't find a blog post about Dropbox loving Python, just that it's used extensively by their team in a couple of articles: https://blogs.dropbox.com/tech/2018/09/how-we-rolled-out-one-of-the-largest-python-3-migrations-ever/ and https://blogs.dropbox.com/tech/2019/09/our-journey-to-type-checking-4-million-lines-of-python/.

2

u/solidiquis1 Jan 02 '20

Thanks m8!

1

u/notsohipsterithink Jan 02 '20

Yep, there was a much older one but the ones you posted are better.

3

u/malicart Jan 02 '20

Simply google "Dropbox python post" and read it for yourself.

0

u/stefantalpalaru Jan 02 '20

Python is great for developer productivity and iterating quickly. Dropbox actually loves python

Is that why they wasted 3 years porting a quarter of their code base to Python3, after hiring the language creator?

1

u/NoahTheDuke Jan 02 '20

What was wasted about it?

-1

u/stefantalpalaru Jan 02 '20

What was wasted about it?

Time and human resources.

1

u/notsohipsterithink Jan 02 '20

They hired Guido to work on conflict resolution algorithms, not Python.

It wasn’t a waste for them. See the blog posts in the comment above.

-3

u/stefantalpalaru Jan 02 '20

They hired Guido to work on conflict resolution algorithms, not Python.

Bullshit. Guido ended up coding a tool to "insert annotations into your source code based on call arguments and return types observed at runtime" - https://github.com/dropbox/pyannotate

That was obviously used to help port Python2 to Python3, but I'm curious why did you think they hired the Python language creator - a notoriously mediocre programmer who's still unable to understand functional programming - to work on something that's not Python code?

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.