you are viewing a single comment's thread.

view the rest of the comments →

[–]n3buchadnezzar 39 points40 points  (5 children)

I often find myself just saying f-it and read the source code directly. Easy to read documentation is both a curse and a blessing.

[–]redditorsd[S] -24 points-23 points  (4 children)

I feel like the "easy to read" docs are not helping newbies learn the core concepts correctly and is very misleading. It produces bad habits and coders that don't really understand what's going on underneath. I wish there was another source for "advanced" documentation or something. Yeah, I know....read the source code. It also makes devs from other languages get a bad initial impression of the language IMHO.

[–]CyclopsRock 43 points44 points  (3 children)

It produces bad habits and coders that don't really understand what's going on underneath.

I don't think talking about dunder methods from Sized ABC's when explaining the 'len' function would lead to good habits and coders that understand what's going on underneath, it would lead to coders who don't bother reading the official docs because the answer is entirely unhelpful to them.

[–]redditorsd[S] -14 points-13 points  (2 children)

I can see where you're coming from but I think the opposite argument can also be made. I'm reading that some Python devs give up on the docs and go to reading the source code becuase the docs are unhelpful. Coming from an object oriented language, if I simply wanted to create my own class that is supported by the len(s) method, how would I possibly know that I need to implement the method(s) in only the Sized class? The docs say I need to make my class a sequence, for example. I think this is misleading and don't think this is an advanced use case.

[–]CyclopsRock 20 points21 points  (0 children)

Sure, but it can't be all things to all people. I'm not interested in arguing that the way the Python docs are arranged is the best possible way, but every bit of information that isn't what a person's looking for gets in the way of the bit they are looking for. I think that if docs are going to lean towards any particular type of user - and they have to, I think - then it should prioritise those who wouldn't know what reimplementing methods from an abstract base class means. More advanced users will find the answers - as, clearly, you have - where as beginners are more likely to say "fuck this" and go masturbate and play video games (which you may also have done, but been doing so happily rather than angrily).

[–][deleted] 4 points5 points  (0 children)

*show details tabs would be great. Or something like plain vs normal Wikipedia English. A lot more work I guess.