Readit News logoReadit News
kaelwd commented on How Not to Buy a SSD   andrei.xyz/post/how-not-t... · Posted by u/speckx
Moru · 4 days ago
I'm curious with what you mean with "Even sold by Amazon". The last few years I see nothing but reports of cheap fake products over Amazon.

Years ago I ordered some T-Shirts to test and they were all fake versions that barely survived the first wash. Haven't ordered anything since then.

kaelwd · 4 days ago
Amazon is literally just aliexpress with faster shipping at this point.
kaelwd commented on 1910: The year the modern world lost its mind   derekthompson.org/p/1910-... · Posted by u/purgator
teamonkey · 15 days ago
Lead was used as a sweetener in food for hundreds of years
kaelwd · 15 days ago
And pewter cups and plates for thousands
kaelwd commented on We shouldn't have needed lockfiles   tonsky.me/blog/lockfiles/... · Posted by u/tobr
simonw · 20 days ago
I see lockfiles as something you use for applications you are deploying - if you run something like a web app it's very useful to know exactly what is being deployed to production, make sure it exactly matches staging and development environments, make sure you can audit new upgrades to your dependencies etc.

This article appears to be talking about lockfiles for libraries - and I agree, for libraries you shouldn't be locking exact versions because it will inevitably pay havoc with other dependencies.

Or maybe I'm missing something about the JavaScript ecosystem here? I mainly understand Python.

kaelwd · 20 days ago
The lockfile only applies when you run `npm install` in the project directory, other projects using your package will have their own lockfile and resolve your dependencies using only your package.json.
kaelwd commented on Open Sauce is a confoundingly brilliant Bay Area event   jeffgeerling.com/blog/202... · Posted by u/rbanffy
granra · a month ago
What I saw as disturbing was the content of the post, failing to see that he wasn't directly voicing his own opinion on the matter.

I didn't like the use of the word "pro-abortion". I generally address them as pro-life even though I don't like that it indirectly indicates that the other side would be "anti-life" but I agree that it's not productive to get into a flame war on terminology.

kaelwd · a month ago
That is his opinion too, there are other posts where he strongly advocates against even the use of contraception.
kaelwd commented on NPM stylus package contained malicious code and was removed from the registry   npmjs.com/package/stylus/... · Posted by u/vandot
vdupras · a month ago
I have a question. I'm curious.

I see two comments here on this subject, complaining about the churn of dealing with security advisories. Sure, it's churn.

... but isn't this problem dwarfed by the implications of having used a compromised package? Presumably, if the project you work on has a compromised dependency, it means you've ran it on your development machine. Presumably, you might have a couple of secrets (private keys, AWS credentials and other whatnots) lying around, which might have leaked to a malicious actor.

Wouldn't you need to review all the development, staging and production machines for all your projects and rotate secrets everywhere?

Wouldn't it be, by far, the biggest churn involved, so much that mentioning "npm audit" difficulties not worth mentioning at all, because of the ridiculous comparison in effort magnitude?

kaelwd · a month ago
This article is four years old but still relevant: https://overreacted.io/npm-audit-broken-by-design/

The vast majority of "compromised packages" are just dev dependencies that have a slow regexp.

kaelwd commented on NPM stylus package contained malicious code and was removed from the registry   npmjs.com/package/stylus/... · Posted by u/vandot
kaelwd · a month ago
Removing the entire package is pretty unusual, normally it's only specific compromised versions.
kaelwd commented on Why is my Raspberry Pi 4 too slow as a server?   ergaster.org/posts/2025/0... · Posted by u/raybb
trenbologna · 2 months ago
> So I can read from my disk at 117 MB/s. We’re far from the theoretical 1000 MB/s.

I think you are confusing megabytes a second and megabit. Gigabit speed is approximately 125 Megabytes per second. This is close to the speed you got.

kaelwd · 2 months ago
Yes but not there, later they get 350MB/s with the same setup.

> I put that drive an ICY BOX IB-1817M-C31 enclosure, with a maximum theoretical speed of 1000 MB/s.

Checks out, it has a 10Gb/s USB port.

The mistake is

> the USB controller of the Pi has a bandwidth of 4GB/s shared across all 4 ports

It's actually 4Gb/s = 512MB/s

kaelwd commented on Greppability is an underrated code metric   morizbuesing.com/blog/gre... · Posted by u/thunderbong
amingilani · a year ago
I agree that code searchability is a good thing but I disagree with those examples. They intentionally increase the chance of errors.

Maybe there’s an alternative way to achieve what the author set out but increasing searchability at the cost of increasing brittleness isn’t it for me.

In this example:

const getTableName = (addressType: 'shipping' | 'billing') => { return `${addressType}_addresses` }

The input string and output are coupled. If you add string conditionals as the author did, you introduce the chance of a mismatch between the input and output.

const getTableName = (addressType: 'shipping' | 'billing') => { if (addressType === 'shipping') { return 'shipping_addresses' } if (addressType === 'billing') { return 'billing_addresses' } throw new TypeError('addressType must be billing or shipping') }

Similarly, flattening dictionaries for readability introduces the chance of a random typo making our lives hell. A single typo in the repetitions below will be awful.

{ "auth.login.title": "Login", "auth.login.emailLabel": "Email", "auth.login.passwordLabel": "Password", "auth.register.title": "Login", "auth.register.emailLabel": "Email", "auth.register.passwordLabel": "Password", }

Typos aren’t unlikely. In a codebase I work with, we have a perpetually open ticket about how ARTISTS is mistyped as ATRISTS in a similarly flat enum.

The issue can’t be solved easily because the enum is now copied across several codebases. But the ticket has a counter for the number of developers that independently discovered the bug and it’s in the mid two digits.

kaelwd · a year ago
REFERER moment.
kaelwd commented on The Era of 1-bit LLMs: ternary parameters for cost-effective computing   arxiv.org/abs/2402.17764... · Posted by u/fgfm
Razengan · a year ago
Why? Just because it's spelled identical to a human body part?

This kind of shit is one of the most bizarre things about human society (or the prude cultures of it at least), to consider the most natural things so taboo and a "joke" to mention.

kaelwd commented on Ask HN: Why are the FAANG tech support forums often useless?    · Posted by u/behnamoh
speedyapoc · 3 years ago
The Apple forums are consistently aggravating. With every question, cue the level X “community specialist” telling you to reset your SMC.
kaelwd · 3 years ago
Same deal with Microsoft and sfc /scannow

u/kaelwd

KarmaCake day22July 11, 2021View Original