Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Too
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
271.
▲
by
Too
2y ago
At that point you might as well go all in on single sign on. 95% of all users are going to be on gmail, outlook or apple anyway. Better to have a "sign in with google" button rather than "send a link to your (g)mail". Th
272.
▲
by
Too
2y ago
For the system yes, a dropped coin eventually reenters the market and a burned bill can be reprinted again. Can't say the same about a crypto wallet. For an individual though, in both cases, a lost wallet is a lost wallet. While an int
273.
▲
by
Too
2y ago
You don't. Use dataclasses instead to get type checking. Otherwise there are tons of tricks to get what you want. To add to the list posted in sibling: a = vars(a) # readonly print(a.foo) or class Obj: pass; a =
274.
▲
by
Too
2y ago
If i download a new version of foo and rename my old version to foo_old_backup_2, should foo_old_backup_2 start behaving differently, just because it has a different name? NO THANKS! A program should be sandboxed from its environment, inclu
275.
▲
by
Too
2y ago
Imagine the performance problems of running 'shutdown' and 'reboot' in a tight loop! Besides, should one really write something performance critical for embedded in shell in the first place?
276.
▲
by
Too
2y ago
These things are better checked automatically with a static linter, that presumably already has a full parser and AST representation of the language and knows what is a cast and not. Nobody should keep a checklist of "100 things to gre
277.
▲
by
Too
2y ago
It's actually easy once you get it, it's just that they choose bizarre terminology that doesn't translate directly from sql. .values() and .annotate() ?!
278.
▲
by
Too
2y ago
Newspapers are as cheap as they are because they are still filled with ads. Not that i mind it, ads on paper are 1000x more tolerable than the blinking, spying popovers one get online.
279.
▲
by
Too
2y ago
Do people use XSRF-tokens nowadays? That used to be the standard approach to this, before all browser CORS protection came to be. The server gives the client a token on the top level page, that must be included in any subsequent POST reques
280.
▲
by
Too
2y ago
This can be seen in data. Compare the car sales of Netherlands vs Denmark, two countries next to each other with similar living conditions, one of them occupied during the war, the other not. Guess which one of them don't have any Germ
281.
▲
by
Too
2y ago
See it as an insurance. It's not likely something will break, if you are the unlucky one though, those spare parts aren't cheap. A dealer can distribute that risk over many more cars.
282.
▲
by
Too
2y ago
The rest of the world is an equally muddy marsh. C++: static_cast, C: void-pointers and unions, java/c#: casting back from (object) or IAbstractWidget. If anything, typescript has the most expressive, accurate and powerful type system
283.
▲
by
Too
2y ago
Internet explorer tried that 20 years ago. Allowing all kinds of errors in the html to just slip through and attempt to do something good out of it, forcing everyone else to be bug-for-bug compatible. Also commonly referred to as the robust
284.
▲
by
Too
2y ago
For a side project? Not even the big giants manage to create LLM bots that work.
285.
▲
by
Too
2y ago
Yeah. This removes one factor in 2FA by deriving something you have by something you know. Almost equivalent to going back to username+password and use your favorite git hash as your password. If you are truly paranoid about loosing your ss
286.
▲
by
Too
2y ago
How can you call a function that does this? html'<div id={id:int}>{content:HTML|str}</div>'. html() is not going to be equivalent.
287.
▲
by
Too
2y ago
Looks good. Would have been nice if they included a way to express type checking of the format_spec. That’s going to be an unnecessary source of runtime errors.
288.
▲
by
Too
2y ago
Yes! TypedDict is fantastic for migrating dicts that have outgrown, into more appropriate containers, such as dataclasses. So good in fact that you can often skip step 3 and 4. Assuming the rest of your code has the type annotations whereve
289.
▲
by
Too
2y ago
This is way overkill, unless you are making a nuclear rocket launch application. If you can not trust the system root CA, the whole internet breaks down. You will also increase the risk that your already understaffed ops-team messes up and
290.
▲
by
Too
2y ago
No. The concept of a DMZ died decades ago. You could still be MITM within your company intranet. Any system designed these days should follow zero-trust principles.
291.
▲
by
Too
2y ago
Sorry, I'm very well versed in the authentication space, but after spending 10 minutes browsing the documentation i truly can't understand the architecture. There are no drawings, it just jumps straight to npx install or comparing
292.
▲
by
Too
2y ago
How do you deploy to systemd? How do you run a container in systemd? Now you need a second and third system, perhaps Ansible and docker-compose, which is simple on the surface but quickly grows in complexity with home made glue to keep all
293.
▲
by
Too
2y ago
Man, you don't need to use service mesh just because you use k8s. Istio is a very advanced component that 99% of users don't need. So if you are going to compare with a managed solution, compare with something equivalent. Take a b
294.
▲
by
Too
2y ago
Third this. If the software team (at least the lead) does not know the business requirements, you are not doing in-house development. Otherwise, it is just equivalent to off shore development, that happens to sit in the same building as you
295.
▲
by
Too
2y ago
These experts may also be hesitant to change. It could be due to many different reasons. One the personal spectrum, they can overvalue themselves or have fear of loosing their jobs. On the technical spectrum, they can be stuck in old tracks
296.
▲
by
Too
2y ago
3.11? The article explains there are improvements on that specific benchmark in newer versions. Not on the order of magnitude that it would catch up here, but still significant.
297.
▲
by
Too
2y ago
If you look at the purpose of this Tea protocol it is exactly to provide a chain of credibility. Though, by connecting ranking with monetization, tea has created perverse incentives, leading spammers to pump up their tea ranking, by linking
298.
▲
by
Too
2y ago
From earlier today: https://news.ycombinator.com/item?id=41173177 Smashing idea: how East Germany invented 'unbreakable' drinking glasses
299.
▲
by
Too
2y ago
Try json.loads("[1,2,3]"), you'll get a list back. The reasons others already posted about extensibility are more correct.
300.
▲
by
Too
2y ago
Yeah. At that price point, give me a reason not to buy Apple TV instead.
More ›