Better HN
topnewbestaskshowjobs
Log inSign up

hot_gril

4,721 karma · joined Apr 23, 2022 (4y ago) · 4,419 submissions

Submissions

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Aside from iTunes getting gimped, I don't feel like the Mac is neglected at all. Was annoyed about the 2016-2019 MBPs though.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Mostly, I trust the card that supports my software with the least issues.

comment 1y ago · link · parent

There's nothing annoying about Nvidia cards though, unless of course you're using Linux.

comment 1y ago · link · parent

Probably called that because it's smaller than the transaction of buying the game

comment 1y ago · link · parent

What's the front door, WebUSB or something else like TLS 1.2?

comment 1y ago · link · parent

localhost-only access is a reasonable compromise

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

In a cross-platform way, kinda yeah. Especially on the Mac side where OS updates always break everything.

comment 1y ago · link · parent

At least I'm a little relieved that Firefox and Safari don't support that either.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

"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."

comment 1y ago · link · parent

Even a lot of reasonably tech-savvy people might not know the difference between the WebUSB consent popup and the security key popup.

comment 1y ago · link · parent

Google should've asked me first, cause just seeing the name WebUSB, I said "wtf why is this even a thing, absolutely no."

comment 1y ago · link · parent

// TODO: migrate to UserOAuthLoginProfileAPIService2 by Wednesday

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Save it for myself how, ditch half the work day to go to the gym? I'm going to work 9-5 either way.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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...

12345
148