4 ms·
Every single language has parts that are a mess, or at least not perfectly designed. But that doesn't mean that languages all have an equal amount of mess. Pyth
by IshKebab 2y ago
Every single language has parts that are a mess, or at least not perfectly designed. But that doesn't mean that languages all have an equal amount of mess. Python clearly has less mess than Perl. Rust clearly has less mess than C++. Zig clearly has less mess than C.
There should be a name for the "nothing is perfect so everything is equally bad" fallacy. It's surprisingly common.
- networked 2y agoThe fallacy of gray? https://www.greaterwrong.com/posts/dLJv2CoRCgeC2mPgj/the-fallacy-of-gray https://www.greaterwrong.com/posts/dLJv2CoRCgeC2mPgj/the-fal... > The Sophisticate: “The world isn’t black and white. No one does pure good or pure bad. It’s all gray. Therefore, no one is better than anyone else.” > The Zetet: “Knowing only gray, you conclude that all grays are the same shade. You mock the simplicity of the two-color view, yet you replace it with a one-color view . . .” > —Marc Stiegler, David’s Sling
- IshKebab 2y agoAh nice, thanks!
- guenthert 2y ago> There should be a name for the "nothing is perfect so everything is equally bad" fallacy. It's surprisingly common. I think this falls under splitting (black-and-white thinking), a form of defense mechanism or (I suspect) mere rhetorical tool. https://en.wikipedia.org/wiki/Black_and_white_thinking https://en.wikipedia.org/wiki/Black_and_white_thinking
- IshKebab 2y agoNo, black and white thinking is a different thing. It's "the fallacy of grey", linked in a sibling comment.
- donatj 2y agoIn Python, default arguments are mutable. That's the ultimate WTF and footgun.
- orbisvicis 2y agoThat's somewhat of misnomer. The root cause is that default arguments are evaluated during function creation rather than when the function called. And... this is invaluable for forcing immediate evaluation of otherwise late-binding closures. What can be confusing is mixed lifetimes of nested generators using `yield from`. If any outer generator has a shorter lifetime, when it is garbage collected `yield from` will forward `close()` to the inner generator. Attempting to re-use the inner generator will result in a premature `StopIteration`. Iterators do not have `close()` and so are unaffected. This affects only `yield from` and not `for i in gen: yield i`.
- IshKebab 2y agoYeah that is definitely a footguns but I think calling it the ultimate footgun is overselling it. Perl implicitly casts between strings and integers. That's a waaaay bigger footgun.
- aspenmayer 2y ago> There should be a name for the "nothing is perfect so everything is equally bad" fallacy. It's surprisingly common. https://en.wikipedia.org/wiki/Perfect_is_the_enemy_of_good https://en.wikipedia.org/wiki/Perfect_is_the_enemy_of_good
- IshKebab 2y agoThat's a totally different thing.
- aspenmayer 2y agohttps://en.wikipedia.org/wiki/Nirvana_fallacy https://en.wikipedia.org/wiki/Nirvana_fallacy
- IshKebab 2y agoAlso not the same thing. That would be someone saying "we can't use any language because they all have flaws". The one I'm talking about is the fallacy of grey, linked from a sibling comment.