Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
g947o
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
451.
▲
by
g947o
10mo ago
https://news.ycombinator.com/item?id=46189692 from a few days ago pretty much tells me that any company that slightly cares about security cannot possibly depend on GitHub runner for their CI (except maybe the smallest/
452.
▲
by
g947o
11mo ago
> From what I remember, it's not addon-users, as most users never have used even just a single addon. Source?
453.
▲
by
g947o
11mo ago
I think these are clearly two different words that mean different things.
454.
▲
by
g947o
11mo ago
Hallucinating things that never exist?
455.
▲
by
g947o
11mo ago
On my Android phone, Chrome opens web pages noticeably (and consistently) faster than Firefox. And I wasn't using a stopwatch. I am literally making a sacrifice to use Firefox.
456.
▲
by
g947o
11mo ago
Is there a good solution to managing "workspace", especially handling multi-folder workspace? I have a project where code lives in giant monorepo, and the files I edit don't have the same root (more precisely, the root is too
457.
▲
by
g947o
11mo ago
As soon as you hijack the fetch function (which cannot be done with WebAssembly alone), it's going to look suspicious, and someone who looks at this carefully enough will flag it.
458.
▲
by
g947o
11mo ago
> extensions could just load external scripts and there's no way you could tell what they were actually doing. I do think security researchers would be able to figure out what scripts are downloaded and run. Regardless, none of this
459.
▲
by
g947o
11mo ago
The proposal likely won't go anywhere. The first sentence in README says enough about it.
460.
▲
by
g947o
11mo ago
it is possible to do many of these with @typedef, but it gets difficult with JSDoc very quickly. In TypeScript you can easily create multi-line type aliases. Not quite so in JSDoc.
461.
▲
by
g947o
11mo ago
Ah I see. Looks like you avoided using the "@callback" tag but instead used the "@typedef" tag directly. Thanks! I do think it illustrates a problem with TypeScript's support for JSDoc though. You see, I started wit
462.
▲
by
g947o
11mo ago
https://news.ycombinator.com/item?id=46268701
463.
▲
by
g947o
11mo ago
Not a limitation in language service, but an issue with the codebase itself -- legacy codebase with a lot of missing/incorrect typing from upstream JavaScript code (owned by other teams), making it practically impossible to actually ru
464.
▲
by
g947o
11mo ago
JavaScript example: https://www.typescriptlang.org/play/?filetype=js#code/PTAEAE... Almost equivalent typescript code: https://www.typescriptlang.org/play/?#code/C4TwDgpgBA6glsAFg... (I
465.
▲
by
g947o
11mo ago
which is not the same as "extends".
466.
▲
by
g947o
11mo ago
This specific one is actually supported since TypeScript 5.0: https://devblogs.microsoft.com/typescript/announcing-typescr... But not properly documented ( https://www.typescriptlang.org/docs/handbo
467.
▲
by
g947o
11mo ago
You just haven't worked in a complex enough project yet. I found several limitations and already opened several issues on github.
468.
▲
by
g947o
11mo ago
These days you can run TypeScript files as-is (type stripping) for testing in many runtimes, and for bundling, most bundlers support using a ts file as the entry point directly.
469.
▲
by
g947o
11mo ago
There is indeed an option in VSCode "typescript.preferGoToSourceDefinition" -- Prefer Go To Source Definition Makes `Go to Definition` avoid type declaration files when possible by triggering `Go to Source Definition` instead.
470.
▲
by
g947o
11mo ago
You could, but in a large codebase with multiple contributors, it easily becomes messy and confusing.
471.
▲
by
g947o
11mo ago
Last time I checked, there isn't a way to extend types ( https://www.typescriptlang.org/docs/handbook/2/objects.html#... ) that works exactly like in TypeScript.
472.
▲
by
g947o
11mo ago
Having JSDoc-like syntax isn't the same as it being fully supported. If you have a large enough codebase, you'll likely find a few cases where things work in TypeScript but its equivalent somehow fails type check in JSDoc.
473.
▲
by
g947o
11mo ago
Support for generics is limited in JSDoc compared to TypeScript, especially when arrow function is involved. Things that work fine in TypeScript trigger errors even though they are syntactically the same.
474.
▲
by
g947o
11mo ago
I work in a codebase that unfortunately does not support TypeScript. I use JSDoc extensively, although not with type check enabled (due to various limitations). I also work on other projects with TypeScript. My own experience is that the DX
475.
▲
by
g947o
11mo ago
When the battery in my current laptop dies and I need to get a new one, none of that matters.
476.
▲
by
g947o
11mo ago
Care you write it down somewhere and share it? I imagine it could be helpful to other people in the same situation.
477.
▲
by
g947o
11mo ago
This story proves that none of it matters if your money along with your account vanish because the megacorp doesn't like your gift card for whatever reason. In fact, it is far worse than paying with a credit card directly in terms of r
478.
▲
by
g947o
11mo ago
Not saying this in a derogatory way, but that pretty much means you are not a "normal" user but someone who is tech savvy enough to not rely on someone else's cloud.
479.
▲
by
g947o
11mo ago
No. The author incorrectly thinks they "own" the "content" like with a physical book, which is the prerequisite for all the discussions following it. I pointed out, factually and correctly, that they don't own anyth
480.
▲
by
g947o
11mo ago
Not your content, it's Amazon's content, you only purchased a license to view it, which can be revoked at any time if daddy Jeff is not happy. And I am not being cynical. That is literally what is on their web page, e.g. https:&#
More ›