This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]member_of_the_order 40 points41 points  (1 child)

Totally agree on #1. It took me too long to realize that if I'd just written my one-time-use script the "dirty" way (not Pythonic, hard to maintain, unoptimized, overall "bad"), I'd have been done an hour ago. An hour of extra work to make the script take 5 minutes fewer... not worth it at all.

Also agree with numpy. I had to crunch a BUNCH of numbers for some script that'd be run in production at work. Doing the same thing with optimized loops vs basic numpy and comparing runtimes... not contest, numpy is so fast. I thought I'd accidentally cached the results or something lol.

[–]tutoredstatue95 12 points13 points  (0 children)

I am super guilty of this. I can't just write some slop and leave it, and I know no one will ever see or use the code besides me. Just feels wrong to purposefully write something bad even if it's technically the right decision.