News for hackers. Stuff that matters.
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.