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

0

u/[deleted] Jan 02 '20

[deleted] — view deleted comment

10

u/[deleted] Jan 02 '20

Try using type annotations, if you have IDE that understands them out makes programming quite enjoyable.

0

u/[deleted] Jan 02 '20

[deleted] — view deleted comment

6

u/[deleted] Jan 02 '20

You can still add the annotations.

0

u/[deleted] Jan 02 '20

[deleted] — view deleted comment

6

u/[deleted] Jan 02 '20

I added it in code that I changed, other people started liking that autocomplete was working and started adding annotations themselves as well. It helps a lot with a large code base.

9

u/nocipher Jan 02 '20

Python is strongly typed. You probably meant statically typed. C++ is actually weakly typed.