4 ms·
This is exactly what I think Everytime my python code (99% I'm forced to use because of library support) breaks because I overwrite a library function in my loo
by mhh__ 6y ago
This is exactly what I think Everytime my python code (99% I'm forced to use because of library support) breaks because I overwrite a library function in my loop, or every "Wat" with JavaScript.
How many hours and thousands of lines of pointless tests have been wasted because of bad type systems - I really don't get the fuss about about Python, C++ was designed by a committee but python genuinely feels like it wasn't designed at all beyond the basic syntax (which I like)
- skohan 6y agoPython's USP is that it's very loose on ceremony so it's easy for "non programmers" like scientists to pick up and use. But like most interpreted languages, the up-front friction is low, but it starts to buckle under it's own weight when a project reaches medium size.
- stevesimmons 6y ago"buckling under its own weight when a project reaches medium size" is a subjective view! A counterexample is the company when I worked for 8 years. They took Python very seriously. By the time I left, 4,000 developers were making 20,000 commits a week in a codebase of some 30,000,000 LOC.
- skohan 6y agoI mean, I think it's possible to write quality software in virtually any language if you're serious about it. I would argue that in the case of python, you'd be succeeding in in spite of the language at that scale rather than because of it.
- maxerickson 6y agoThe way to avoid that is not ugly or particularly tedious: import library library.function That doesn't prevent writing a different value into library of course.