News for hackers. Stuff that matters.
Re:This Is What Python Beginners Have to Deal With by junke on Thursday September 08, 2016 @09:02AM (#12452529)
Sure, in a perfect world the documentation would guess who I am and adapt accordingly, be both highly detailed when I need it or informal when I don't.

But it's not a perfect world, I want to get stuff done. I have twenty years of programming experience, I know how to find the information I need.

Sure, the whole language explained in one place for all kind of people from beginners to experts would be nice. But I have Internet. I type "foreach python" in Google and I see a StackOverflow post.

Re:This Is What Python Beginners Have to Deal With by lawpoop on Thursday September 08, 2016 @12:08PM (#12454300)
> I type "foreach python" in Google and I see a StackOverflow post.

That's kind of indicative right there.

Re:This Is What Python Beginners Have to Deal With by junke on Thursday September 08, 2016 @12:19PM (#12454407)
Indicative of what?

Are you trying to say that a the docs should have "Python for X programmers" sections, foreach (no pun intended) X in {Perl, PHP, Haskell, Lisp, Go, Javascript, C++, ...}?

That would be nice, but what is even better is a totally different resource that aggregates idioms for all languages:

https://www.rosettacode.org/wiki/Loops/Foreach

Re:This Is What Python Beginners Have to Deal With by lawpoop on Thursday September 08, 2016 @02:37PM (#12455884)
That the first result is a stackoverflow question about the language rather than a documentation page, is indicative that getting started with the language is not so straight-forward, even factoring in documentation.

If you're googling 'python foreach', you're probably at the beginner level, and the fact that a documentation page is not the first result means that the beginners documentation is not very discoverable.

The fact that there's a not-closed, highly-upvoted, highly-ranked stackexchange question about this very basic issue in existence /at all/ is what one might call a "documentation smell".

Re:This Is What Python Beginners Have to Deal With by junke on Thursday September 08, 2016 @03:17PM (#12456342)
The documentation contains "for-each" and "for each", but sadly not "foreach". Why should "foreach" be in the documentation? There is no "foreach" keyword in Python. If you are looking for "foreach", someone else will look for "python do until", "python fold", "python switch" and maybe another one for "python macros" or "python transducer".

Some of those searches are legitimate, because "foreach" is quite used outside of Python and "switch" should be expected to be defined in every language. However, the documentation states what the language is, not what it isn't.

The goal of a reference documentation is like a dictionary: you define your words w.r.t. the other words defined in your language; this is already quite a complex task. But you don't mention words from other languages because that would start to be overly confusing and a burden to maintain (now you have to check how other languages evolve). There are other resources to make connections between languages.

Re:This Is What Python Beginners Have to Deal With by lawpoop on Thursday September 08, 2016 @05:25PM (#12457485)
> Why should "foreach" be in the documentation?

To make it easier to find "for", "for each", and "for-each"?

Re:This Is What Python Beginners Have to Deal With by junke on Thursday September 08, 2016 @11:52PM (#12459534)
How come you know "foreach" in the first place, this is not even a correct english term? You learn it from another language? Wonderful, but why should every keyword from every programming language ever designed be present in the Python docs?
Re:This Is What Python Beginners Have to Deal With by lawpoop on Friday September 09, 2016 @11:30PM (#12467540)
I never argued for every for every keyword from every programming language. But like I said, that there's a stackoverflow question about this one, I think, is indicative.
Re:This Is What Python Beginners Have to Deal With by junke on Monday September 12, 2016 @04:37AM (#12478070)
And this one is special because?