HNHacker News
TopNewBestAskShowJobs

pwdisswordfishz

535 karma · joined June 9, 2024

    const links = Array.from(document.querySelectorAll(':link[href^="vote"][id^="up"]:not(.nosee)'));
    const timer = setInterval(() => {
      const link = links.pop();
      if (!link.matches('.nosee'))
        setTimeout(() => link.click(), Math.random() * 2000);
      if (links.length === 0)
        clearInterval(timer);
    }, 16000);
submissionscomments
pwdisswordfishz··on Defer: Resource cleanup in C with GCCs magic
I don't understand why people insist on simulating a poor substitute for RAII with a feature that is itself almost decent RAII.

> If malloc fails and returns NULL, the cleanup function will still be called, and there’s no simple way to add a guard inside free_ptr.

free(NULL) is a no-op, this is a non-issue. I don't know what's so hard about a single if statement anyway even if this were an issue.

pwdisswordfishz··on Not only am I losing my livelihood to AI – now it's stealing my em dashes too
No, they are not two em-dash options.
pwdisswordfishz··on Not only am I losing my livelihood to AI – now it's stealing my em dashes too
AI makes typoes all the same.
pwdisswordfishz··on When I say “alphabetical order”, I mean “alphabetical order”
That's a hyphen, not a minus sign, silly.
pwdisswordfishz··on Why use mailing lists?
There are other problems besides access. The big one being that the people that you'll find on Discord are the kinds of people that you'll find on Discord.
pwdisswordfishz··on Eric S. Raymond to the OSS community on codes of conduct: Refuse to have one
So why would I care what some racist Twitter rando thinks?
pwdisswordfishz··on Knotty: A domain-specific language for knitting patterns
Why did I expect a terminal emulator
pwdisswordfishz··on P=NP Demonstration Solves Traveling Salesman – Cryptography and Logistics Impact
Medium post just to embed a YouTube video... did you forget a wooden table?

The video is hilarious, though:

https://youtube.com/watch?v=VBj80rx_iBc

pwdisswordfishz··on Beyond the Front Page: A Personal Guide to Hacker News
> display images inline like Reddit does

That's a relatively new development. The cultural aspects that you're describing were already in place (entrenched) well before Reddit integrated that feature.

pwdisswordfishz··on How I, a non-developer, read the tutorial you, a developer, wrote for me
You could replace specialized terms with nonsense words in anything. This is completely non-actionable critique.

In the end, there is no Royal Road to learning. You have to create put in the effort to create new concepts in your head to understand something.

pwdisswordfishz··on The bloat of edge-case first libraries
And C/C++.
pwdisswordfishz··on Show HN: The text disappears when you screenshot it
Take N screenshots, XOR them pairwise, OR the results, then perform normal OCR.
pwdisswordfishz··on Human writers have always used the em dash
Same typewriters that didn't bother having dedicated "0" and "1" keys?
pwdisswordfishz··on Checking if a JavaScript native function is monkey patched (2022)
It wasn't, but that is not why.
pwdisswordfishz··on C++26: Erroneous behaviour
How does it prevent security vulnerabilities when instead of being undefined entirely, the behaviour is defined to be wrong? This is the "chug along at all costs" mentality that PHP has been slowly and painfully growing out of.

`-ftrivial-auto-var-init=pattern` doesn't need "erroneous behaviour" in the standard at all. In fact, it may outright conflict with it, if for example the standard defines that the compiler must initialize variables to zero instead of your chosen pattern in case of "erroneous behaviour".

"Erroneous behaviour" is a superfluous concept that exists only to allow the committee to pat themselves on the back and say "See? We no longer have undefined behaviour!".

pwdisswordfishz··on A clickable visual guide to the Rust type system
Yeah, except this one is much more arbitrary in its choice of groupings and arrangement. Why is the boolean and Unicode scalar type in the same column as floating-point types? Why is the ! type not next to enums if () is next to tuples? (Both are neutral elements of their respective type-formation operations.) How is Sized to Drop as Copy is to Clone? You can go on and on. If you take the "periodic table" framing seriously, you can see some actual correspondences on display (like between plain operators and compound assignment operators), but they drown in a sea of spurious ones.

It's like infographics. Pretty visuals, but little to no insight.

pwdisswordfishz··on No adblocker detected
If I am allowed not to look at the screen when an advert is playing, then I should be allowed not to play it in the first place. There is no moral obligation on the part of the viewer here.

An advert is an investment: someone pays money to broadcast something and hopes that will generate awareness. Any investment is allowed to fail.

pwdisswordfishz··on GitHub Community Discussions: Past year's top 2 requests are to disable Copilot
Companies shipped the Semantic Web? When?
pwdisswordfishz··on Formatting code should be unnecessary
> A C argument declaration is made up of modifiers (register, const), a data type (char *), and a name (from).

Now explain a declaration like "char *argv[]"...

> We’ve also re-set the data type such that there is no space between char and * - the data type of both of these variables is “pointer to char”, so it makes more sense to put the space before the argument name, not in the middle the data type’s name (update: it should be pointed out that this only makes sense for a single declaration. A construct like char* a, b will create a pointer to char, a, and a regular char, b).

Ah, yes, the delusional C++ formatting style. At least it's nice that the update provides the explanation why it should be avoided.

pwdisswordfishz··on Formatting code should be unnecessary
That's why you grep for a syntactic structure, not undifferentiated text.
pwdisswordfishz··on Pico CSS – Minimal CSS Framework for Semantic HTML
Or just <button>…
pwdisswordfishz··on C++26: Erroneous behaviour
The distinction between #3 and #4 does not matter in practice: "I have learned to use variable initializers, that's why there isn't one present". As soon as you make it reliable, people will start to rely on it and it will become entrenched.
pwdisswordfishz··on Microsoft Azure: "Multiple international subsea cables were cut in the Red Sea"
Gram-metres?
pwdisswordfishz··on C++26: Erroneous behaviour
Why bother with this category? The code exercising it is buggy either way, regardless of whether the behaviour is specified or not, and having a fixed definition may constrain implementations and negatively impact performance. And if that "erroneous" definition comes with stability guarantees, then you might not even bother calling it "erroneous" at all, because then it's going to be as toothless as declaring any given JavaScript syntax to be "improper": https://github.com/twbs/bootstrap/issues/3057#issuecomment-5...
pwdisswordfishz··on My Foray into Vlang
> I'm fine with Go's syntax, error handling, lack of bells and whistles, enums, and so on. In fact, I've learned to appreciate the brutalist simplicity of its design.

Assembly language is going to blow your mind; it lacks even more features than Go.

pwdisswordfishz··on The V Programming Language
There are much better designed languages in this niche, that aren't developed by fraudsters.
pwdisswordfishz··on Researchers find evidence of ChatGPT buzzwords turning up in everyday speech
ChatGPT makes spelling mistakes too.
pwdisswordfishz··on Researchers find evidence of ChatGPT buzzwords turning up in everyday speech
Adjectives don't have a plural form.
pwdisswordfishz··on Researchers find evidence of ChatGPT buzzwords turning up in everyday speech
AltGr+Shift+hyphen is easier, I think.
pwdisswordfishz··on Researchers find evidence of ChatGPT buzzwords turning up in everyday speech
A hyphen is shorter.
Page 1 of 9Next →