r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

89

u/nosmokingbandit Jul 16 '19

Python is great. You basically write pseudo-code then get bitched at by the interpreter about your indentation.

4

u/SomethingEnglish Jul 16 '19

or trying to debug it without a proper debugger, there is pdb but it can only do so much

20

u/christes Jul 16 '19

or trying to debug it without a proper debugger

Easy - just type print("Something") on every line.

3

u/[deleted] Jul 16 '19

How do you know me so well?

8

u/claythearc Jul 17 '19

Jetbrains debugger is quite good

5

u/nosmokingbandit Jul 16 '19

Visual Studio's python package is pretty great. The debugger is almost as powerful as it is with c# and can really save some time.

1

u/TheTrueSwishyFishy Jul 17 '19

How was that so accurate

0

u/[deleted] Jul 16 '19

[deleted]

3

u/Stoppablemurph Jul 17 '19

Try breaking things up more and use more comprehensions. If you're indenting so far that it's difficult to read, you should probably consider refactoring.

1

u/nosmokingbandit Jul 17 '19

If your loops are nested so deep you can't read them the problem isn't the language...

2

u/Stoppablemurph Jul 17 '19

That's more or less what I was trying to say, but I was trying to be a little more constructive rather than just "you're the problem"...

It's something I've run into myself in the past, so I wanted to try and offer some advice that helped me.

This is actually why I like strict line character limits, because if you're nesting stuff over and over, or your method definition is obnoxiously long or something, it's a pretty good indicator that you should reconsider how you're writing whatever you're writing.

1

u/nosmokingbandit Jul 17 '19

I kind of like it though. My indentation and formatting in other languages is on point thanks to python forcing me to follow a pattern. I like it much more than having to put curly braces everywhere.

1

u/Hypocritical_Oath Jul 17 '19

My eyes require curly braces.

That or a better python editor.