News for hackers. Stuff that matters.
Re:How often do people copy and paste from Stack Overflow? by nynx on Monday April 19, 2021 @06:40PM (#26868684)
I've found that the amount I use stackoverflow is inversely proportional to the quality of the documentation and the strength of the type-system of the language I'm using.
Re:How often do people copy and paste from Stack Overflow? by erinan on Monday April 19, 2021 @07:02PM (#26868825)
That's me with Python... For some reason I find the documentation extremely cumbersome to navigate and parse. It's just so wordy and dense. And there are barely any examples - which is what I'm usually looking for instead of having to read a whole paragraph.

The Elixir documentation on the other hand is succinct and always features basic examples for every function. It's a joy to work with.

Re:How often do people copy and paste from Stack Overflow? by sergiomattei on Monday April 19, 2021 @07:15PM (#26868910)
As a slightly opposing take, Django has the highest-quality and most comprehensive documentation I've ever seen for a web framework... Or open source project, for that matter.

Not very related to the parent comment, but just an interesting note.

Re:How often do people copy and paste from Stack Overflow? by gtm1260 on Tuesday April 20, 2021 @12:37AM (#26870728)
I agree, Django docs put Flask to shame! Flask in general is more intuitive I guess, but the docs are not as good as they could be.
Re:How often do people copy and paste from Stack Overflow? by ashton314 on Tuesday April 20, 2021 @03:46AM (#26871820)
+1 for Elixir’s documentation. José Valim knew what he was doing when he made docs so easy and pleasant to create and view.

I always love it when a programming language has their docs available off-line and easily accessible. I grew up on Perl without an internet connection (or a GUI for that matter) so I got very used to the perldoc command. That is now the standard I expect. Elixir is one of the few languages that exceeds this bar imo.

Re:How often do people copy and paste from Stack Overflow? by anitil on Monday April 19, 2021 @08:52PM (#26869562)
I've been playing with the ast module in Python lately, and the documentation actually says to go look at someone else's documentation because it's better, which is a refreshing take.

Official Documentation: https://docs.python.org/3/library/ast.html

Green Tree Snakes: https://greentreesnakes.readthedocs.io/

Re:How often do people copy and paste from Stack Overflow? by lucb1e on Monday April 19, 2021 @06:48PM (#26868726)
Definitely. Looking at my browser history for stackoverflow + PHP, it seems to be things to do with PHP, such as how to prevent a referrer from being sent when users click a link on my website. That's of course not actually part of the PHP language, so it would seem like I'm rarely looking up how to use PHP APIs on stackoverflow. I've always found PHP docs to be the best of any language that I've used.
Re:How often do people copy and paste from Stack Overflow? by muglug on Monday April 19, 2021 @07:14PM (#26868903)
Though even for PHP StackOverflow is still pretty useful e.g:

https://www.google.com/search?q=string+contains+word+php

Re:How often do people copy and paste from Stack Overflow? by acomjean on Monday April 19, 2021 @09:04PM (#26869648)
Note that php.net answer (official docs) is right below the stack overflow one.

I like the php manual. Its pretty simple and has good exmamples. They seem to used to have allowed/ allowed user comments, which used to be really old. (this one seems more up to date)

Re:How often do people copy and paste from Stack Overflow? by Qem on Tuesday April 20, 2021 @10:21AM (#26875039)
Related: http://xahlee.info/python/quality_docs.html | http://xahlee.info/comp/which_programing_language_has_best_d...

It's curious, despite not a example of a great language, PHP has great documentation.

I tried Pharo, and a great functionality there I miss in other languages, is the search by example ability. Saves a lot of visits to stackoverflow. See for example:

https://avdi.codes/in-which-i-make-you-hate-ruby-in-7-minute...