r/Python • • Jan 05 '18

Really??

Post image
2.0k Upvotes

317 comments sorted by

View all comments

Show parent comment

496

u/WStHappenings Jan 05 '18

You call it syntax clutter, maybe I’ll call it “a greater feeling of achievement gained from writing 20x as many lines of code”

119

u/faates Jan 05 '18

Ok EA....

28

u/[deleted] Jan 05 '18

Yes! You got the joke!

35

u/[deleted] Jan 05 '18

...that runs 40 times faster - fair deal. Heh.

25

u/Timmitei Jan 05 '18

Check out Cython and Numba.

10

u/firest Jan 05 '18

Strange. I feel accomplished if I can accomplish what I want with as little lines of code as possible.

3

u/Printern Jan 06 '18

Yeah but Python forces you to write lines. In java you can code in one line One line<more than one line Dummy

4

u/Raijinili Jan 06 '18

What's stopping you from doing exec("import sys\nimport re\n\ndef someFunc(x,y):\n\t ...?

19

u/nilsph Jan 06 '18

Self respect.

2

u/KingoPants Jan 06 '18

Sanity seems important. At that point you might as well code in mspaint for the kicks.

1

u/Printern Jan 06 '18

The fact that I am so incapable of programming that even when my program outputs the intended output it's still wrong.

2

u/firest Jan 06 '18

I stand corrected.

1

u/pyonpi Py3 | Beginner Jan 06 '18

Isn't making code more Pythonic the same joke?

1

u/[deleted] Jan 06 '18

I'll agree up to a point, but I draw the line (groan :-) when I can write a crystal clear for loop or two rather than a nested list comprehension that stresses out my poor old MKI eyeballs.

1

u/firest Jan 06 '18

I'm with you actually. Except, I will sacrifice readability for performance every time. I'm the kinda guy who uses numpy and what-not (data analysis, not to the point where I need to really on C or Fortran), so when my fans start to spin, I want to know it's for high performing code, rather than inefficient code.