HNHacker News
TopNewBestAskShowJobs

Mindless2112

1,833 karma · joined June 30, 2012

submissionscomments
Mindless2112··on Japan births fall to record low as population crisis deepens
Number of births in Japan has been falling since 1973 [1].

[1] https://www3.nhk.or.jp/nhkworld/en/news/backstories/2160/

Mindless2112··on Null References: The Billion Dollar Mistake (2009) [video]
Absolutely. Null pointers doesn't even make the list of things that I worry about when writing C code.
Mindless2112··on What is .NET, and why should you choose it?
> .NET 6 seems to be different to .NET Framework and different to .NET Core in the way it handles even simple things like namespaces, using declarations and other language features.

Those are C# language features, not necessarily .NET 6 features:

• https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/cs...

• https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/cs...

"global using" is a code readability regression, so I wish it had not been added and I'd recommend against using it.

Mindless2112··on Modern Mono
The problem with codingfont.com is that it overrides the line height, so you won't see what the line height will actually look like in your editor, which is something that I care about.
Mindless2112··on US jet shoots down unknown object flying off Alaska coast
Blackmail (demanding favors rather than money) and industrial espionage come to mind.

https://www.theregister.com/2020/09/15/china_shenzhen_zhenhu...

Mindless2112··on The <Dialog> Element

  on: <a href="item?id=34759527">The <Dialog> Element</a>
Looks like the title is not properly escaped.
Mindless2112··on US jet shoots down unknown object flying off Alaska coast
You can bring your own government to account for what it does. You can do nothing about what what China does.
Mindless2112··on White House plan to foster equity and excellence in STEMM is all about equity
But now you're talking about socioeconomic status, not "race".
Mindless2112··on Stanford's “Elimination of Harmful Language” Initiative
The WSJ article: https://www.wsj.com/articles/the-stanford-guide-to-acceptabl...
Mindless2112··on Stanford's “Elimination of Harmful Language” Initiative
Race is crude social construct. It's practically useless and needs to be phased out.
Mindless2112··on Stanford's “Elimination of Harmful Language” Initiative
Yeah, well, it sort of falls apart once people start pointing out that Elon Musk is the richest African-American.
Mindless2112··on JPEG XL support has officially been removed from Chromium
Where does one find a recent draft?
Mindless2112··on JPEG XL support has officially been removed from Chromium
At the bottom there's a link to a lossless comparison, which shows JPEG XL outperforming WebP, AVIF, and PNG on size (no metrics on decode speed).
Mindless2112··on Apple to move 40-45% iPhone production to India
There is one, but you're going to pay more than 10% more.

https://puri.sm/products/librem-5-usa/

Mindless2112··on Curation and decentralization is better than millions of apps
Is there a popular F-Droid repository that offers ad-free software that isn't necessarily open-source?
Mindless2112··on C23 Implications for C Libraries
UB sanitizers can only show that your code has undefined behavior, not that it does not. And the results are only as good as your tests. Those sanitizers are also not available with old embedded toolchains.

I do dial up the warnings to 11, yet it is not enough.

I've written C code that's currently running on hardware orbiting the earth. I'll never do it again if I can help it; it wasn't worth the stress. You only get one chance to get it right.

Mindless2112··on C23 Implications for C Libraries
In contrast, when I write C, I spend far too much time thinking "how do I solve this problem without causing undefined behavior?"
Mindless2112··on ZLibrary domains have been seized by the United States Postal Inspection Service
"Appeal to hypocrisy" was recognized as a logical fallacy long before it was called "whataboutism".
Mindless2112··on The case for JPEG XL
Any chance of publishing the spec with ECMA in addition to ISO? The C# spec is both an ECMA and an ISO standard, but it started with ECMA.
Mindless2112··on Why U.S. Public Debt Matters [audio]
In context, it's very hard to read it as such.
Mindless2112··on Why U.S. Public Debt Matters [audio]
> During the Clinton administration the US was briefly even running budget surpluses.

Congress, not the president, controls the government's budget.

Mindless2112··on Google set to deprecate JPEG XL support in Chrome 110
> - There is not enough interest from the entire ecosystem to continue experimenting with JPEG XL

Gee. Maybe there's no interest because nobody can use it yet because it's behind a feature flag.

Mindless2112··on That Shouldn't Happen – UnreachableException in .NET 7
The state machine example is a good one. It's a textbook case of unreachable code.

The null-checking example is not good. If the external API returns a null where you don't expect one, UnreachableException will be thrown. It doesn't matter if the documentation says it will never be null; clearly the code isn't unreachable. All you need to reach it is bad data! (InvalidDataException would be a better choice, though arguably not an ideal one.)

If you can write a unit test that makes your code throw UnreachableException, you almost certainly should be throwing a different exception.

Mindless2112··on Bringing passkeys to Android and Chrome
Good to know! Hopefully this kills off unnecessary use of attestation.
Mindless2112··on Bringing passkeys to Android and Chrome
Sure, but passkeys are meant to replace passwords, not SSO (although I won't complain if they do replace SSO).

Most services probably would not restrict you to just one model of authenticator, but it wouldn't surprise me at all to see a service require that the authenticator be backed by a secure element, in which case you could use a security key, a passkey, a TPM, et cetera, but not a password manager. I'd still take that over passwords, but I don't think everyone would.

Mindless2112··on Bringing passkeys to Android and Chrome
> If you don't like Google or Apple, use your favorite password manager.

Unless the service you are trying to use requires that you use a particular model of authenticator, which the service provider can enforce via attestation.

Mindless2112··on Tuned Mass Damper of Taipei 101 Skyscraper during 6.8 earthquake [video]
https://www.youtube.com/watch?v=f1U4SAgy60c&t=181s (for some definition of "detailed explanation")
Mindless2112··on Sony Android TVs waste 25W in standby due to built-in Google Chromecast
That is less effort that I was envisioning. But personally I prefer to take the stance of not inviting power vampires into my house.
Mindless2112··on Sony Android TVs waste 25W in standby due to built-in Google Chromecast
Might be worth finding out whether you're wasting your time. As measured on a Kill-a-Watt, my 2013 LG TV consumes 0.0 watts when on standby.
Mindless2112··on $ rm Important.txt (uh oh)
Not every operation. It's manual but easily automated. https://github.com/zfsonlinux/zfs-auto-snapshot
← PreviousPage 3 of 16Next →