News for hackers. Stuff that matters.
Re:Examples Are the Best Documentation by OptionOfT on Friday October 10, 2025 @12:44PM (#45540922)
The annoying part about Python is that searching for the python docs is hard.

E.g. "Python rstrip" (without quotes) in DuckDuckGo does not lead me to the Python docs on page 1.

Re:Examples Are the Best Documentation by deaddodo on Friday October 10, 2025 @02:03PM (#45541907)
I've never had that issue with Python.

Now, languages with common / short names? All the time. Go, C, C++, D, etc; even Rust (especially since all the libraries have similarly ambiguous names related to iron oxide).

Re:Examples Are the Best Documentation by 1718627440 on Saturday October 11, 2025 @04:52AM (#45547640)
For C there is excellent documentation and tutorials in man pages and info documents. It's in my experience the best you can find short of reading the code yourself.
Re:Examples Are the Best Documentation by 1718627440 on Saturday October 11, 2025 @04:51AM (#45547635)
help(str.rstrip) in a Python shell? Who needs online docs? In case I want them I also have them offline in Devhelp.

Am I uncommon in that I search for the website/domain I intend to read first and then look for the specific page?

Re:Examples Are the Best Documentation by porridgeraisin on Saturday October 11, 2025 @06:49AM (#45548088)
> am I uncommon

I think so!

Re:Examples Are the Best Documentation by tremon on Saturday October 11, 2025 @11:17AM (#45549830)
In DuckDuckGo you should be using !py rstrip, that's what the bangs are for. But yes, in general most of the good (third-party) python resources have been killed by SEO spam.