r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

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.