Readit News logoReadit News
hashkb commented on What Is Vim?   blog.jonas.foo/whats_vim.... · Posted by u/sauercrowd
tom_ · a year ago
I guess. Wake me up when you can enable Emacs mode in vim.
hashkb · a year ago
But why? The best thing about vim is normal mode. Emacs with evil-mode is so cool.
hashkb commented on What Is Vim?   blog.jonas.foo/whats_vim.... · Posted by u/sauercrowd
hashkb · a year ago
I love this take. I was a die-hard Vim/Neovim zealot... but these days I absolutely love the ecosystem of tools that support normal mode. For so long hand-cramping emacs keybindings were sort-of-standard-in-a-few-places.

If you're not convinced vimming is the best way to interact with your editor, you probably haven't seen a really proficient vimmer.

hashkb commented on Wi Flag (2002)   asheron.fandom.com/wiki/W... · Posted by u/corysama
SamBam · 3 years ago
> A unit test could have caught this

I've always wondered the best way to write tests for "This event should happen x% of the time."

Obviously we could re-run the test 100 times and see if it happened close to x%, but not only is that inefficient, how close is "close"? You'll get a bell curve (or similar), and most of the time you'll be close to x but sometimes you'll be legitimately far away from x and your test will fail.

You could start from a known seed, but then are you really testing the percentages, or just checking that the RNG gives you the same output for the same seed, which you already know?

hashkb · 3 years ago
You can mock the RNG. You don’t need to test/prove it’s random, you need to test your code which is not random.
hashkb commented on Adafruit requires 2FA to prevent bots buying out Raspberry Pi   blog.adafruit.com/2022/03... · Posted by u/7402
ineedasername · 4 years ago
What about stuffing the lottery box with countless bot-created accounts entering the lottery?
hashkb · 4 years ago
You'd have a lot more time to find and boot them prior to running the lottery. Assuming you didn't/couldn't detect them, at least you spare your users the anxiety and inconvenience of the on-sale while they get screwed.
hashkb commented on Adafruit requires 2FA to prevent bots buying out Raspberry Pi   blog.adafruit.com/2022/03... · Posted by u/7402
hashkb · 4 years ago
I don't understand what's so hard about this problem - if you have a platform that's impacted by bots and scalpers, and if you want to do the right thing, or give the appearance of doing the right thing with almost no cost to yourself or your business, you should release your product in a fair lottery with reasonable purchase limits.

You have plenty of time before the product is released to register and verify everyone. You completely avoid traffic issues. Accounting is easy - you'll sell out when you run the lottery. You'll build a reputation for releasing inventory fairly and without causing undue stress on your customers, and avoid the suspicion that you're in cahoots with the scalpers (looking at you, Ticketmaster).

I'm accustomed to stressing out over concert tickets and struggling to get gaming consoles, and have a deep hatred of scalpers and the platforms that enable them, but I had no idea that scalpers were ruining the educational/hobby markets too. That seems really low.

hashkb commented on Esbuild – An extremely fast JavaScript bundler   esbuild.github.io/... · Posted by u/taitems
Aeolun · 4 years ago
> How is the integration with things like a dev server and tools present in create-react-app like react-fast-refresh?

It’s not. It doesn’t do hot reloading, and it’s one of the features the author rejected I think.

hashkb · 4 years ago
You can build very fast reloading yourself, easily. If I'm smart with persisting state on the client, I find I don't really miss "hot" reloading.
hashkb commented on Esbuild – An extremely fast JavaScript bundler   esbuild.github.io/... · Posted by u/taitems
baxuz · 4 years ago
How is the integration with things like a dev server and tools present in create-react-app like react-fast-refresh?

Also, in case of working on an Electron project: How well does it handle main/render/preload compile targets and handling of native modules and linking?

Electron-forge is, for instance, the recommended toolchain for building Electron apps and the Webpack stuff is a particular pain in the ass.

hashkb · 4 years ago
Or easily write your own dev server. Once you use the API instead of the CLI, if you have any experience with Express or Connect it's trivial.
hashkb commented on Ask HN: What do engineers never talk to their bosses about, but should?    · Posted by u/danfrost
neogodless · 4 years ago
I'm not trolling. I'm trying to improve discourse. Doesn't mean I'm right (as my own comment downvotes indicate) but that was my intention.
hashkb · 4 years ago
I'm trying to improve discourse by fighting against the downvote. It's my opinion it harms discourse significantly. It's low signal, and not constructive. It has an obvious chilling effect on dissent. Nothing upholds echo chambers more than the downvote.
hashkb commented on Ask HN: What do engineers never talk to their bosses about, but should?    · Posted by u/danfrost
pc86 · 4 years ago
I can't even begin to imagine the bubble you must live in to ascribe words like suspicion and cowardice to someone clicking a button on a forum even most software developers in the world have never even heard of.
hashkb · 4 years ago
You could try. I'd assume it was downvoted by folks who perpetuate said double-talk. If there was a defense, they'd have articulated it. But, since anonymous downvoting is easier and less risky, that's what happens. Silencing the discussion about downvotes is a meta downvote that we shouldn't accept just because it's in the guidelines.
hashkb commented on Ask HN: What do engineers never talk to their bosses about, but should?    · Posted by u/danfrost
giantg2 · 4 years ago
I do this often. It never ends well, even if I'm right.
hashkb · 4 years ago
Management often already got a deal or has worked their tech choice into a financial projection.

Sometimes, they are even right. And "I told you so" rolls downhill.

u/hashkb

KarmaCake day1498November 15, 2015
About
[ my public key: https://keybase.io/dashkb; my proof: https://keybase.io/dashkb/sigs/mU7XoSAJCJsnCHuyN_mT_hxE4PqGpGWnVYH-L9vu_xg ]
View Original