News for hackers. Stuff that matters.
Re:Nim 2.0.0 RC2 by xigoi on Friday March 31, 2023 @12:21PM (#35389398)
> They should have just made a language wide convention like Rust.

I don't know about Rust, but Python has a language-wide convention – and programs still violate it, including the standard library.

Re:Nim 2.0.0 RC2 by runarberg on Friday March 31, 2023 @01:39PM (#35390401)
In JavaScript (the wild west of programing languages) when I see a library that exports names in non-idiomatic ways, or otherwise has a non-idiomatic API, I usually search for a different library.
Re:Nim 2.0.0 RC2 by xigoi on Friday March 31, 2023 @09:29PM (#35396077)
The DOM API, which is objectively the most important JavaScript library, has an inconsistent naming convention. Specifically, it can't decide whether it wants to treat acronyms/initialisms as words. See for example getElementById versus innerHTML.
Re:Nim 2.0.0 RC2 by runarberg on Saturday April 01, 2023 @02:07AM (#35397591)
I do like Array.prototype.includes vs. Element.classList.contains also which APIs use promises vs. callbacks vs. events. Like I said, JavaScript is the grandmaster of mixing and mashing idioms.
Re:Nim 2.0.0 RC2 by IshKebab on Saturday April 01, 2023 @02:50AM (#35397839)
Very rarely though in my experience.