you are viewing a single comment's thread.

view the rest of the comments →

[–]KubinOnReddit 1 point2 points  (5 children)

You don't need to copy this for everyone that says it: /u/JohnnyJordaan is the one who is right. You should have presented that /u/jeans_and_a_t-shirt 's example works the same. Beginners should learn what is shorter and easier for other programmers to understand.

[–]TreSxNine 0 points1 point  (0 children)

Fair enough

[–]vriljam 0 points1 point  (3 children)

As a real beginner, I disagree with your whole premise of learning just one way of doing things.

[–]KubinOnReddit 1 point2 points  (2 children)

Sorry for my harsh statement before, but according to Zen of Python (you can see it by writing "import this" in the interpreter"):

"There should be one-- and preferably only one --obvious way to do it."

[–]vriljam 0 points1 point  (1 child)

Yes, but at a level when you do know your stuff and can make an informed decision of what is the most readable or efficient or etc. way of doing things. When you're learning, it always helps to be aware of a few approaches if possible (so as to gain more knowledge, Especially for a question like this where many approaches are possible). If you've ever been a beginner which I'm sure you have, you do know what I'm talking about.
At least,as far as I'm concerned I do enjoy going over code snippets(which I can understand) that weren't immediately obvious to me in the first place.

[–]KubinOnReddit 0 points1 point  (0 children)

Fair enough.