News for hackers. Stuff that matters.

hot_gril

Re:Choosing a Database Schema for Polymorphic Data (2024) on Tuesday July 08, 2025 @11:29PM (#44506100)
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.

Re:Serving 200M requests per day with a CGI-bin on Sunday July 06, 2025 @03:00AM (#44478468)
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.

Re:Nvidia Is Full of Shit on Sunday July 06, 2025 @02:35AM (#44478353)
Aside from iTunes getting gimped, I don't feel like the Mac is neglected at all. Was annoyed about the 2016-2019 MBPs though.
Re:Nvidia Is Full of Shit on Sunday July 06, 2025 @02:34AM (#44478351)
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.
Re:Nvidia Is Full of Shit on Sunday July 06, 2025 @02:29AM (#44478331)
Mostly, I trust the card that supports my software with the least issues.
Re:Nvidia Is Full of Shit on Sunday July 06, 2025 @02:26AM (#44478314)
There's nothing annoying about Nvidia cards though, unless of course you're using Linux.
Re:Nvidia Is Full of Shit on Sunday July 06, 2025 @02:23AM (#44478297)
Probably called that because it's smaller than the transaction of buying the game
What's the front door, WebUSB or something else like TLS 1.2?
localhost-only access is a reasonable compromise
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.
In a cross-platform way, kinda yeah. Especially on the Mac side where OS updates always break everything.
At least I'm a little relieved that Firefox and Safari don't support that either.
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.

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.
"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."
Even a lot of reasonably tech-savvy people might not know the difference between the WebUSB consent popup and the security key popup.
Google should've asked me first, cause just seeing the name WebUSB, I said "wtf why is this even a thing, absolutely no."
Re:"Normal" engineers are the key to great teams on Friday March 14, 2025 @01:27AM (#43359837)
// TODO: migrate to UserOAuthLoginProfileAPIService2 by Wednesday
Re:"Normal" engineers are the key to great teams on Thursday March 13, 2025 @09:52PM (#43358920)
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.
Re:"Normal" engineers are the key to great teams on Thursday March 13, 2025 @09:48PM (#43358899)
Save it for myself how, ditch half the work day to go to the gym? I'm going to work 9-5 either way.
Re:"Normal" engineers are the key to great teams on Thursday March 13, 2025 @08:39PM (#43358595)
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.
Re:"Normal" engineers are the key to great teams on Thursday March 13, 2025 @08:09PM (#43358484)
The 1-2 might not be obsessed or spending more time, just working smarter. Software engineering gives a lot of opportunity to be way faster or slower depending on what choices you make.
I haven't heard of this, was just 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.
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...

Pleasantly surprised that the first one with Christian symbols in Africa was something I happen to know exactly
Re:The US island that speaks Elizabethan English on Wednesday March 12, 2025 @06:34PM (#43348405)
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.
Re:Peer-to-peer file transfers in the browser on Wednesday March 12, 2025 @06:24PM (#43348296)
Maybe there's a way to send messages/files over the covid19 protocol.
Re:The US island that speaks Elizabethan English on Wednesday March 12, 2025 @06:20PM (#43348267)
Canada also has an English vs French problem that cannot be resolved at this point.
Re:The US island that speaks Elizabethan English on Wednesday March 12, 2025 @06:09PM (#43348155)
Nope, English only. I don't want my family's Persian or Arabic to be official either.
Re:The US island that speaks Elizabethan English on Wednesday March 12, 2025 @01:16PM (#43345447)
The country can accept immigrants without bending for them. And getting official docs in 10 languages makes people more wary of immigration.

Older »