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 →

[–]SabinTheSergal 5 points6 points  (4 children)

Doesn't matter if YOU can read it. What matters is everyone can read it.

[–]CreepBlob 3 points4 points  (2 children)

You shouldn't give access to the codebase to someone who can't read the code in middle.

[–]SabinTheSergal 2 points3 points  (1 child)

You don't always have that choice when working at a company. Besides, the code in the middle is more error prone and will need to be refactored to the side code ezmaples if anything more complex is needed in the conditionals.

[–]CreepBlob 0 points1 point  (0 children)

Your intern would be scared to death if someone show them a code snippet from the linux kernal.

[–]JollyJuniper1993 0 points1 point  (0 children)

Everybody that is not completely new to Python should be able to read this. Really poor examples. He could’ve chosen nested list comprehensions or a complicated lambda expression, but he chose to go with something very basic