3 ms·
> Q: What is the spelling of bureaucracy? A: J-a-v-a (Excuse me if I've mentioned this before.) So, I met the guy who did the first implementation of Merge Sor
by stcredzero 14y ago
> Q: What is the spelling of bureaucracy? A: J-a-v-a
(Excuse me if I've mentioned this before.) So, I met the guy who did the first implementation of Merge Sort which he wrote in assembly language on paper tape. One of his comments on C++ after noting how cluttered it could look: "So, is this today's equivalent of COBOL?"
> when you get out of the trivial program length domain into projects that are 100's of thousands of lines that this problem will sooner or later rear its ugly head
Global namespaces are evil. We have non-global namespaces, but programmers keep on acting like there's only one global namespace. In reality, in large projects, everything should be considered relative to intersecting areas of concern, and code should always explicitly reference the libraries being used locally. Python could be used this way, but I suspect most programmers act as if imports are just a way of getting what they want into their most convenient namespace, which effectively becomes the global one.
- michaelhoffman 14y agoA module namespace in Python does not suffer from the same problems that global namespaces in other languages do, because what goes in there is under the control of the module writer, barring strange monkey-patching approaches.
- stcredzero 14y agoThat's not what I'm getting at, at all. The Python module/namespace mechanism is just fine. I'm saying that the developer community doesn't use it in a way guaranteed to keep million line codebases as neat as possible.
- michaelhoffman 14y agoWhat way guarantees million line codebases as neat as possible?