Re:WTF Python: Exploring and understanding Python through su...
by Doxin on Thursday February 11, 2021 @03:04AM
(#26099309)
Fair enough I suppose, but I'm still seeing posts like the OP getting linked all over the place by people trying to disparage python as a language.
Of course once you get more deeply into a language it's probably a really good thing to get to know all the weird edge cases. One of my favorite past-times is writing intentionally terrible code just to exercise some of those edge cases. For instance this hello world code uses quite some oddball language features: https://gist.github.com/SuperDoxin/fde4fdad237e85a90c8764cdf...
Re:WTF Python: Exploring and understanding Python through su...
by foolfoolz on Thursday February 11, 2021 @03:13AM
(#26099361)
this is the same defense against the php and javascript posts: if you know the entire language really well none of these are actually problems
Re:WTF Python: Exploring and understanding Python through su...
by Doxin on Thursday February 11, 2021 @03:20AM
(#26099409)
If you'll read more carefully you'll find that that's not what I said. I said none of these are problems you'll run into. Even as a newcomer.
Once you're getting better at the language it's nice to know these edge cases because they teach you details about the language you'd otherwise miss out on.
Despite the name, I don't think this is anti-python, in the same way classics like [0] are anti-PHP. The project README mentions this a bit:
> While some of the examples you see below may not be WTFs in the truest sense, but they'll reveal some of the interesting parts of Python that you might be unaware of. I find it a nice way to learn the internals of a programming language, and I believe that you'll find it interesting too!
0: https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/