Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
79 ms
·
661.
▲
by
spion
6y ago
Agreed. Although sometimes its easier not to fiddle with the mask taking it off and on again, especially if one doesn't have easy access to hand hygiene
662.
▲
by
spion
6y ago
That's why "sans" was there.
663.
▲
by
spion
6y ago
According to this small Spanish randomized controlled trial, it can be even better: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7456194/
664.
▲
by
spion
6y ago
This is a common misconception about "coupling". Decoupling is making something truly independent, not making the dependency injectable. Making it injectable is the last resort when you can't make it independent. The real thi
665.
▲
by
spion
6y ago
The level of evidence isn't great yet, but its highly likely that Vitamin D can help modulate the immune system. There is a retrospective study showing a difference between patients that got Vitamin D and those that didn't (can&#x
666.
▲
by
spion
6y ago
Scientists do have some idea: https://twitter.com/farid__jalali/status/1293305162509910016 disclamer: IANA scientist or doctor, but it looks like long covid might be very similar to allergy (and similarly treate
667.
▲
by
spion
6y ago
e.g. see also https://github.com/facebook/react-native/issues/29236
668.
▲
by
spion
6y ago
I think this is entirely on TC39 not on transpilers, as currently there is absolutely no alternative mechanism and the resulting behavior is just surprising to many.
669.
▲
by
spion
6y ago
MobX works well when paired with a Rx-like library for the more complex cases. With that its never necessary to chain reactions.
670.
▲
by
spion
6y ago
The sad bit about checked exceptions is that everyone compares any sort of error tracking to them and immediately dismisses many useful ideas Java's checked exceptions got the worst possible combination of error tracking. Its optional,
671.
▲
by
spion
6y ago
Personally once I started working with TypeScript, I don't want to go back to an untyped dynamic language. Its just too painful, even for personal projects, and tests don't fix the pain (at least not at the expense of not doing te
672.
▲
by
spion
6y ago
You could also start a NestJS project instead: https://nestjs.com/
673.
▲
by
spion
6y ago
> if it were working with ArrayBuffers directly you would be so far away from usual JS and any convenience JS offers, you might as well not be writing JS Or you might as well do, since it makes interop generally easy. In the library spac
674.
▲
by
spion
6y ago
Next time you get a "Cannot read property <x> of undefined" error at runtime, take a moment to trace why it happened, then read https://shinesolutions.com/2017/01/06/writing-safer-code-wit...
675.
▲
by
spion
6y ago
If you forget to do the check, you will get a falsy value. Hope you remember to do it every single time, and hope all your team members remember! If a team member writes function extractEmail(text) { return x.match(/someregex&#
676.
▲
by
spion
6y ago
You can't avoid null and undefined in your code unless you avoid almost every language feature. Two particularly common ones: * Accessing a missing property or method results with undefined. Hope you remember the exact method names and
677.
▲
by
spion
6y ago
An instance of a Voight-Kampff test.
678.
▲
by
spion
6y ago
Like all things taught and learned by cargo-culting, unit tests have long lost the original intent. No, a unit is not a function, or a method, or a class, or a file. A unit is a clearly separated, non-trivial software component with a minim
679.
▲
by
spion
6y ago
For a lot of code, if you write JS like you write C (avoid allocations by avoiding the creation of objects, arrays or closures) you should get very comparable performance i.e. within 30% to 50% of C performance
680.
▲
by
spion
6y ago
I mean, the design doc is wrong. Instead of Object.defineProperty(HeaderImpl, "name", { value: "Header" }); you can just use export let Header = class Header { } to avoid creating a conflict between the hea
681.
▲
by
spion
6y ago
The issue is that on regular projects/products, you are trying to hone on perfection by adding and removing a bunch of things and trying different stuff. This repeats for a longer period of time, say 6 months to a year. The codebase ha
682.
▲
by
spion
6y ago
For the first year, anyway. If the project continues to grow, next year they would be called to deal with the enormous spaghetti mess that has resulted.
683.
▲
by
spion
6y ago
Except for green threads.
684.
▲
by
spion
6y ago
This hints at there being non-humans doing NLP research at the moment.
685.
▲
by
spion
6y ago
Here in JavaScript land, we have Prettier and can configure the line limit to be whatever we want on our local editor and whatever else we want when we save the saved file, making this entire discussion irrelevant. Its time for more develop
686.
▲
by
spion
6y ago
The rate of infection largely depends on the initial rate of growth within the country, which in turn depends mainly on cultural and environmental factors. This spreadsheet https://docs.google.com/spreadsheets/d/1A
687.
▲
by
spion
6y ago
That's the entire problem with this theory. The designer does NOT know what my computer screen renders. Not every computer is a Mac with a 400+ nits display or has the same contrast ratio. The optimal "gray" therefore varies
688.
▲
by
spion
6y ago
In my experience, this is completely wrong. I always strain more to read gray text on white background, no exception. I really wish this trend stops. A darker background, on the other hand, can be helpful in some situations.
689.
▲
by
spion
6y ago
Its not about the size of the packages, its about managing an entire system, for whatever definition of the word "system" In the "olden" days, you would patch the vulnerable dependency and be sure that all services runni
690.
▲
by
spion
6y ago
Of course I understand how it works. I just can't constantly keep in mind what garbage I played around with 3 months ago that might be responsible for the issue I'm looking at right now. I don't expect it, and more importantl
More ›