3 ms·
The first two of those are explicit design decisions: "explicit is better than implicit" and "we're all consenting adults" respectively.
by sweeneyrod 7y ago
The first two of those are explicit design decisions: "explicit is better than implicit" and "we're all consenting adults" respectively.
- erokar 7y agoMost things in a language are explicit design decisions. Doesn't automatically make them good decisions. Actually Python is one of my favorite programming languages, probably the language with the closest mapping to how I naturally think about a problem. I really like it. But I'm also willing to admit it has some warts, as does any language.
- ForHackernews 7y agoPython has warts, but IMHO it's weird to identify valid design choices, with pros and cons on each side, as "warts". If I were listing Python warts, I'd point to things like single-element tuples (1,), the `datetime` support (timezone-naive datetimes are an ambiguous disaster), or the cpython Global Interpreter Lock.
- mixmastamyk 7y agoYep, complaining about self is kinda silly when there are real things to complain about. My editor supports snippets so moderate python boilerplate is not a problem.
- smacktoward 7y agoThere's a fine line between "explicit is good because it means how things behave is obvious" and "explicit is bad because it means typing the same boilerplate over and over again." Not saying Python fell on the wrong side of that line, just that it's an easy line to end up on the wrong side of.
- ForHackernews 7y agoYou're free to use `_` (or whatever) instead of `self`, if you find `self` to be much repetitive boilerplate. It's only a convention.
- gowld 7y agoSadly the linters went for `self`.