News for hackers. Stuff that matters.
Re:I still love PHP and JavaScript by __del__ on Tuesday August 02, 2022 @09:29PM (#32326588)
i always found those comment sections to be so odd — fifteen year old comments about a common pitfall and the information never makes it up to the official documentation?

i suppose it's fitting for a web-centric language to crowd source its docs on a website, but does any other mainstream language do this?

Re:I still love PHP and JavaScript by oneeyedpigeon on Wednesday August 03, 2022 @04:31AM (#32329098)
Meanwhile, I find the PHP docs far more readable/accessible than almost any other language. Compared with the official Python or (shudder) Java docs, and they're far superior, IMO.
Re:I still love PHP and JavaScript by saurik on Wednesday August 03, 2022 @05:38AM (#32329554)
If it makes you feel any better, at least the comments are next to the documentation? Really big projects that people rely on every day -- things like Rust's Cargo or Google's Flutter -- are riddled with bugs and limitations, requiring frustrating boilerplate workarounds to make basic things work correctly, and they generally only have mention of the problems in the comments on the billion 5-10 year old open issues in their task tracker.
Re:I still love PHP and JavaScript by cnity on Wednesday August 03, 2022 @04:56AM (#32329283)
Clojure crowdsources "examples" (to good effect, IMO). For example: https://clojuredocs.org/clojure.core/assoc-in
Re:I still love PHP and JavaScript by mxschumacher on Wednesday August 03, 2022 @02:03AM (#32328154)
The php docs are themselves a public GitHub repo, so it's a bit sad if insightful comments don't affect change in the docs