HNHacker News
TopNewBestAskShowJobs

hot_gril

4,721 karma · joined April 23, 2022

submissionscomments
hot_gril··on Choosing a Database Schema for Polymorphic Data (2024)
Definitely don't want to store types as columns in a DB, especially because of the inevitable thing that qualifies as two different types. In this situation, I'd usually take the first one (nullable cols) without much consideration. The DB doesn't need an xor constraint, but it can if you really want. New cols can be added without much impact on existing data.

And if the info is non-scalar, it's either option 2 (nullable FK) or 5 (JSON), depending on whether or not other things join with fields inside it.

hot_gril··on Serving 200M requests per day with a CGI-bin
Idk about the internal affairs, I just really don't like Python for web backend kind of things. It's taking them way too long to sort out parallelism and packaging, while NodeJS got both right from the start and gracefully upgraded (no 2->3 mess).

Also I used Python way before JS, and I still like JS's syntax better. Especially not using whitespace for scope, which makes even less sense in a scripting language since it's hard to type that into a REPL.

hot_gril··on Nvidia won, we all lost
Aside from iTunes getting gimped, I don't feel like the Mac is neglected at all. Was annoyed about the 2016-2019 MBPs though.
hot_gril··on Nvidia won, we all lost
Yeah, going from Intel to M1 was a huge improvement, but not in every way. So now they're closing all the other gaps, and it's getting even better.
hot_gril··on Nvidia won, we all lost
Mostly, I trust the card that supports my software with the least issues.
hot_gril··on Nvidia won, we all lost
There's nothing annoying about Nvidia cards though, unless of course you're using Linux.
hot_gril··on Nvidia won, we all lost
Probably called that because it's smaller than the transaction of buying the game
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
What's the front door, WebUSB or something else like TLS 1.2?
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
localhost-only access is a reasonable compromise
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
In this case, it's probably because the alternatives are good enough, even if it's just that Firefox users open Chrome in specific instances where they want to connect to special hardware.
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
In a cross-platform way, kinda yeah. Especially on the Mac side where OS updates always break everything.
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
At least I'm a little relieved that Firefox and Safari don't support that either.
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
It's supposedly doable: https://news.ycombinator.com/item?id=43361159

Maybe hasn't been done, but I agree with some of the other comments around here that if this were truly important, someone would've done it. Or at least if a browser is going to support it, it should only be enabled via some hidden dev setting.

hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
If you even know what an ESP32 is, you can get a browser extension to use WebUSB. Very few users need this feature built-in, let alone enabled by default.
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
"The need funding from it somewhere" is the concerning part. Don't let desperate people run your browser. They already got caught injecting their own referral codes into links then just said "oh sorry."
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
Even a lot of reasonably tech-savvy people might not know the difference between the WebUSB consent popup and the security key popup.
hot_gril··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
Google should've asked me first, cause just seeing the name WebUSB, I said "wtf why is this even a thing, absolutely no."
hot_gril··on “Normal” engineers are the key to great teams
// TODO: migrate to UserOAuthLoginProfileAPIService2 by Wednesday
hot_gril··on “Normal” engineers are the key to great teams
Even before you hit big scale, there's a lot of boring work that great engineers won't want to do. And what really makes someone a great engineer is the ability to transform a hard problem to something regular engineers can handle the rest of. So I agree that 10x engineers are real and it's often 2 out of 12, but all-star teams don't work, which is why those people often get moved to run new teams/projects instead.
hot_gril··on “Normal” engineers are the key to great teams
Save it for myself how, ditch half the work day to go to the gym? I'm going to work 9-5 either way.
hot_gril··on “Normal” engineers are the key to great teams
It's only a regular 9-5. Family is #1 priority, but that doesn't mean I don't take pride in my work. What I get in return is the ability to work remotely in my hometown while the manager wants the rest of the team coming into the office in the Bay Area.
hot_gril··on Show HN: Time Portal – Get dropped into history, guess where you landed
I haven't heard of this, was mainly thinking about how Rome Total War (the original at least) misrepresented most factions and units in it, especially the Egyptians. There wasn't even an enjoyable reason for it.
hot_gril··on Show HN: Time Portal – Get dropped into history, guess where you landed
Still more accurate most of the time than a lot of historical video games at least.

I got a trippy one that was supposed to be about Da Vinci painting the Last Supper, but the people were moving, so I thought it was supposed to be the actual supper: https://www.eggnog.ai/timeportal/56571c14-8f13-48ba-b60f-d82...

hot_gril··on Show HN: Time Portal – Get dropped into history, guess where you landed
Pleasantly surprised that the first one with Christian symbols in Africa was something I happen to know exactly
hot_gril··on The US island that speaks Elizabethan English
If precedent is what decides core American tenants... Every immigrant group in history has learned English over time, or at least their children have. Even if the majority of the country were ESL, English would still be the most commonly understood one by far.
hot_gril··on Peer-to-peer file transfers in the browser
Maybe there's a way to send messages/files over the covid19 protocol.
hot_gril··on The US island that speaks Elizabethan English
Canada also has an English vs French problem that cannot be resolved at this point.
hot_gril··on The US island that speaks Elizabethan English
Nope, English only. I don't want my family's Persian or Arabic to be official either.
hot_gril··on The US island that speaks Elizabethan English
The country can accept immigrants without bending for them. And getting official docs in 10 languages makes people more wary of immigration.
hot_gril··on Peer-to-peer file transfers in the browser
Honestly yeah, AirDrop is part of Apple's lock-in.
Page 1 of 34Next →