3,485 karma · joined August 19, 2007
I wouldn't like to maintain Haskell code written by someone who thinks everything should look like Python. And vice-versa.
But I also think the "message passing" metaphor has outlived its usefulness the same way. A caller does not need to know how the callee is implemented. Sure, but this is the same in any language with functions/procedure, this is not something specific for OO. The idea of message passing is a bit deeper, for example that the client does not even know it is calling a method. It sends a message, and the object answers, even if it is just by throwing an error that the message is not supported. This is how Smalltalk and (I think) Ruby works, but not at all how a statically types language like C# works. And it is not how Python works either. In Python you obtain a method reference from an object and then invoke it. So if you apply the message passing metaphor, your are actually passing the message to the method rather than the object itself. Which I think is just a confusing way to describe a method call.
I guess the signature could be made more readable by using a few type aliases. The hardest part to read is the nested types.
I'm with you on the macro syntax, it is very hard to read. It is not easy to create a readable macro syntax though. All languages I know have hard-to-read macros, so this is not yet a solved problem.
Note that you can state exactly the opposite hypothesis and still claim the numbers support it. The use of gaming consoles and smartphones improve IQ, but this effect have maxed out in Scandinavia.
True, but the theory that this affected public health is a myth.
Rust is competing in the space of C and C++, it is not competing against Java or Python. People are not gong to write operating systems in Python because it feels more productive. For simpler desktop applications you may have a point, but heavyweights like Word or Photoshop are written in C++ and Rust may be a realistic migration. JavaScript or Python is not.
Autoindent is a solution to a problem that doesn't exist in Python in the first place. Having two independent representations for blocks, one for human readers (indent) and one for compilers (braces), leads to nasty bugs when they get out of sync. Autoindent is a tool to keep them in sync. In Python there is a single representation, so nothing can get out of sync.
Ancient lyrical poetry like Sappho on the other hand is direct expression of feelings. Ecclesiastes (in the Bible) is a monologue about the narrators feelings and mental state.
So it seems to more like a question of genre and narrative style rather than some kind of mental development of humanity. The sagas are not fiction, they are supposed to be about actual historical figures and events. You don't know what a historical figure actually thought and felt, only what they said and did. There are some examples in the sagas where characters directly express their feeling through poetry.
If Add(x, y) is just as maintainable as x + y, why does Go use operators for the regular numeric types? Why have + at all?
I haven't written numerical code in Go but I am skeptical it will be as maintainable without operators. The lack of a particular feature does not in itself make code more maintainable.
I can't speak to metaclasses, since I have never had to maintain code using them. In my experience they are pretty rare.
You cannot prevent people from doing stupid things anyway. What you can do is encourage good style, and making the "right way" the path of least resistance. You can write readable code in any language, even Perl, if you use enough effort and discipline, but Python tries to make readable code the easy default.
The "quote" you made up is not representative of the Python culture or the article here, although I'm sure you can find some blogger somewhere with that attitude. They seem to have mostly migrated to other more hip languages though.
I think it is a fools errand to try to find rational explanations for implausibilities in mythology. After all, the length of lifespan is kind of the least problematic thing about the account of Adam, if you want to understand it as historical.
Well 90% of everything is crap. That said, I don't think the mark of quality is whether the artist have "something to say". What does that even mean? Most of art throughout history rehashes the same themes. The differentiator is not what they say but how they say it.
Consider that at one point blues and jazz was not considered "real music" by critics, and the same for rock'n'roll. Now people are studying these genres and writing academic papers. Does that mean they are all easily fooled dipshits?
That is a bit weird criticism, since the whole point of relational databases is that the physical storage structure is abstracted away. SQL does not prevent databases from using different storage structures.