News for hackers. Stuff that matters.

loudgas

Your Web browser is probably the best example. When you visit a Web site, your browser discovers resources and understands how it can interact with them.
Would that make this the Japanese Sword Fallacy Fallacy?
Re:I've Overlayed Stays on a Light Pollution Satellite Map on Tuesday October 31, 2023 @08:55AM (#38084082)
Neat idea. Is there a color legend somewhere? I don’t see one.
Re:Goodbye, Node.js Buffer on Tuesday October 24, 2023 @01:51PM (#38002688)
Any behavior that is not defined in the spec[0] is, by definition, an implementation detail. Relying on undefined behavior is a recipe for bugs. If you need an immutable array, and the spec doesn't require the returned array to be immutable, you should create one yourself.

[0] https://tc39.es/ecma262/multipage/indexed-collections.html#s...

Re:Goodbye, Node.js Buffer on Tuesday October 24, 2023 @01:03PM (#38002014)
>Buffer also comes with additional caveats. For instance, Buffer#slice() creates a mutable segment linked to the original Buffer, while Uint8Array#slice() creates an immutable copy, resulting in possible unpredictable behavior. The problem is not the behavior of the Buffer#slice() method, but the fact that Buffer is a subclass of Uint8Array, but changes the behavior of an inherited method.

But this is an implementation detail, not specified behavior. Changing method behavior in subclasses is a key aspect of inheritance.

Re:The weird world of Windows file paths on Friday April 21, 2023 @11:38AM (#35655397)
The article mentions this in the Disallowed Names section.
Re:Developer with ADHD? You’re not alone on Monday February 20, 2023 @09:29AM (#34868387)
Being tall gives you an obvious advantage at basketball. As a result many tall people are drawn to pursuing a career in basketball. Could it be that ADHD gives you an advantage at the kind of tasks involved in software engineering, and that many people with ADHD are naturally drawn to this kind of work, even though the advantage is not so obvious as a physical characteristic like height?
Re:English as She Is Spoke on Monday January 02, 2023 @03:27PM (#34223198)
“all over the shop” is another way of saying “all over the place” in the UK

Sources:

https://www.merriam-webster.com/dictionary/all%20over%20the%...

https://idioms.thefreedictionary.com/all+over+the+shop

Re:Classic SE Mistakes (2021) on Thursday October 06, 2022 @11:27PM (#33117094)
I had to read way too much of this before realizing that SE means software engineering.
This article (and every other article I can find on the ban) conflates whipped cream cans[1] with whipped cream chargers[2], which is what the law[3] bans.

[1] https://www.gogetdelivery.com/media/catalog/product/cache/1/...

[2] https://i5.walmartimages.com/asr/b73db9f0-6258-47a6-9954-bd7...

[3] https://legiscan.com/NY/text/A00754/2021

Re:DRY is an over-rated programming principle? on Thursday July 07, 2022 @08:42PM (#32021610)
I believe this was added in the 20th anniversary edition to address the overuse of DRY following the original edition.
The author says not to use a wireless headset. And what’s the difference in time to join a meeting between a high quality mirrorless or DSLR camera and a cheap webcam after the initial setup?
Re:Why is a registry file called a “hive”? (2003) on Tuesday May 10, 2022 @10:20PM (#31335142)
Not really. Databases predate SQL.
Re:I finally escaped Node on Wednesday March 24, 2021 @03:17PM (#26571742)
I think the confusion is around the phrase "spin up," which usually refers to the starting of a process or machine. I think what you meant is that developers can write an HTTP service in a day--referring to the speed of development for Node.js.