In the case that you're providing an explicit id as an argument, yes. If it were a query, no. It's dangerous to use an empty value for all failed lookups, as you can't differentiate between "not found because it doesn't exist" versus "not found because the database went offline for a minute".
HN user
rmrfrmrf
deactivating and/or closing your account just gives them more datapoints imo, and the number of people who do it is so small that it makes a great metric for fingerprinting.
It's not the size of the change that's a problem, it's that the change doesn't address the problem at all, and that the only metric for success for these changes is how angry they make people (which, in the circles of the people proposing these changes, means the change is "working").
It's entirely possible to hire more engineers of color and pay them fairly, but it turns out that pitting workers against each other by introducing a handful of inconsequential process and standards changes is much cheaper and hinders the solidarity that enables coordinated advocacy for better working conditions.
It looks like yet another cosplay of 20th century labor politics, but with the typical 21st century twist of diverting the fight from those who wield power to... the paying customers, for whatever reason.
To give an example, I'd rather not have votes count from people who are upset about this one particular method of ranking. I might start using this view more!
So it's "everything's better with bacon" for the 2020s? Gross!
absolutely wild to me that Real Engineers (TM) complained about this in JavaScript for years only for it to be called a "newbie mistake" in Go.
We wanted flying cars, instead we got 140,000 fintech companies
PiHole has a web admin UI that's pretty slick. It has options to disable the entire thing indefinitely/for a set period of time if you need to, and it can log all DNS queries, so you can override/manually block anything you need. There's also nifty charts and metrics to show you how much traffic has been blocked.
I found that, after tinkering with blocklists for a bit, I turned off logging altogether and just let it run. The one thing that gives us grief occasionally is (unsurprisingly) tracking links from promo emails and social media. These are usually easy enough to bypass, but it can be a pain for non-tech-savvy people.
Worth noting that PiHole also resolves CNAMEs and blocks them if they're on your filter list.
I'm obsessed with that Siemens HighPrint 7400 manual cover.
The problem, as mentioned above, is that the public understands exactly how science works, and it makes the scientists (and the companies paying the scientists) very upset.
But that's what "theory" means. It is, in fact, a guess; a guess that could be flat-out wrong the second a piece of contradictory evidence comes to light.
But, instead of acknowledging that, for some reason a large group of Science Defenders have chosen this hill to die on where actually theory means infallible truth that mustn't be challenged, especially not from the likes of the common man.
There is such a drive to prove the religious wrong that we've thrown the baby out with the bathwater and created some kind of anti-religion where all skepticism is immediately put down and skeptics are excommunicated.
No mention of funding of scientific studies and the ongoing replication crisis?
This whole rant is a bit of a non-sequitor for a minor performance bug with a working fix.
This is incorrect. The richest 10% of the population causes 49% of climate change. The poorest 50% of the population causes 10%.
Facebook offers libraries for iOS (and Android) developers to add features Facebook login, but which include other features like native app analytics and drop-in widgets that serve Facebook ads.
If it's not obvious, these Facebook libraries are trojan malware, full stop. And, even though iOS apps are sandboxed, if 50% of a user's apps have the same Facebook library baked into them, it's not hard for Facebook to link all that data together to determine usage patterns across apps.
The reason why they're fighting with Apple now is that it used to be much easier for Facebook to obtain a device-unique identifier that each app could forward along to Facebook, giving them device-level usage data. Apple now sees the privacy flaws in device-unique ids, and has either started or plans to start rotating those device ids and making them unique at the app-level only, which reduces the resolution of its tracking from the device level to the network level.
unless...
Sorry to have to be the one to tell you: sometimes architectural decisions are driven by factors other than YAGNI. Right now you have throngs of young developers paying $50k+ a year for the privilege to learn how to use Docker and Kubernetes while in college, and when 90% of them inevitably get rejected from FAANG after graduation, you'll be able to hire them on the cheap and entice them with development stacks they're comfortable with.
It seems like you could get most, if not all the way, there with an "isomorphic" Redux store on client and server side, along with a custom Redux middleware (very easy to write and well-documented) that reads actions from and writes actions to whatever connection you have set up. That way, your initial "giant json object" on the client is just the current store state and your "streaming updates" are just redux action objects going over the wire. You'd probably want some extra metadata attached to the objects (e.g., a uuid field and an ack field containing the last action's uuid) and youd have to deal with all of the usual synchronization problems in your middleware, but you'd have a solid starting point, at least.
I used to love reading A List Apart in the 2000s and associate it with rise of Web 2.0 apps, so when I saw the domain, I wondered why I stopped reading.
After reading, I almost laughed out loud that the author apparently felt the need to relitigate the rise of SPAs, throw in a shoutout to SEO, dunk on Java developers, tug on our heartstrings thinking of the kids in Africa with iPhone 4s crying while Safari parses 100kB of JSON (in 2005, this would have been a story about grandmas surfing the web on IE5), and, as a special treat, throw out a recommendation for Ruby on Rails in 2021.
A List Apart appears to have pivoted to a sort of digital Renaissance fair, but for the year 2007.
Is it really necessary to invoke the spectre of the Holocaust just because you don't agree with direct stimulus payments?
The press are the manual reviewers, and articles like these are merely examples of the escalation process.
Just because the user doesn't need to pay up-front doesn't mean the service operates at a loss (YouTube pulled in $15 billion in 2019, according to a quick search). Furthermore, YouTube Premium is a paid offering. IMO Alphabet just uses YouTube as a playground for its ML experiments because it can moreso than because it needs to for viability.
In an iterative development process, it's not the end of the world to get potentially unsafe code out the door and then make it safe later, and there's a huge benefit in having unsafe code labeled and framed in source when security bugs are found.
there was once a guy that said that wages, at the end of the day, trend toward the employee's means of subsistence. seems like companies now are doing away with the window dressing around the employer-employee relationship.
I had no idea that the posting of this article was in any way related to current vaccine approval efforts, but I can assure you that holding a rhetorical gun to my head immediately after reading the article has done nothing but make me extremely skeptical of whatever product AZ is peddling.
Pakistan's laws are clearly wrong, but Apple and Google do not and should not have the authority to bypass any country's laws.
Morality has nothing to do with it. If consulting advice literally bankrupts your company, the advice is trash, full stop.
Not even close to a comparable analogy. A better analogy would be yours, but where the ink disappears after 1 day and the person getting the tattoo dies a day later.