This is a terrible article. Some of the questions are good, but most of them are vague, and most of the answers don't use the right conventions. I won't talk about naming conventions, but take a look at the second question, os.walk would've been a much better alternative.
my thoughts exactly. writing your own recursive function to do that is a neat trick, I guess, but Python has a very nice "batteries included" standard library that has already solved that problem. I'd expect an experienced python programmer to prefer to use that rather than roll their own.
109
u/gamesbrainiac Nov 20 '15 edited Nov 20 '15
This is a terrible article. Some of the questions are good, but most of them are vague, and most of the answers don't use the right conventions. I won't talk about naming conventions, but take a look at the second question,
os.walkwould've been a much better alternative.