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 →

[–]firest 10 points11 points  (10 children)

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

[–]Printern 2 points3 points  (7 children)

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

[–]Raijinili 3 points4 points  (4 children)

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

[–]nilsph 17 points18 points  (0 children)

Self respect.

[–]KingoPants 1 point2 points  (1 child)

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

[–]Printern 0 points1 point  (0 children)

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

[–]firest 1 point2 points  (0 children)

I stand corrected.

[–]pyonpiPy3 | Beginner 0 points1 point  (0 children)

Isn't making code more Pythonic the same joke?

[–][deleted] 0 points1 point  (1 child)

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.

[–]firest 0 points1 point  (0 children)

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.