Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
matt_kantor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
91.
▲
by
matt_kantor
9mo ago
To be fair they really transfer bytes, which can be any data format you want.
92.
▲
by
matt_kantor
9mo ago
@scope[0] is perhaps a better comparison. [0]: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/A...
93.
▲
by
matt_kantor
9mo ago
> when a big tech company has success experimenting with it TFA has many examples of big tech companies using Wasm in production. It's not exhaustive either, e.g. the article doesn't mention: - Google using it as a backend for
94.
▲
by
matt_kantor
10mo ago
I don't think I understand your last point. Could you elaborate? What does "Javascript/Typescript support" mean to you (i.e. what specific features/capabilities are missing from the current engines)?
95.
▲
by
matt_kantor
10mo ago
The purpose of StackOverflow was never to get askers quick answers to their specific questions. Its purpose is to create a living knowledge repository of problems and solutions which future folk may benefit from. Asking a question on StackO
96.
▲
by
matt_kantor
10mo ago
> The problem is moderation marking unrelated questions as duplicates. This problem isn't directly solvable (what counts as a "duplicate" is inherently subjective, and therefore mistakes/differences of opinion are ine
97.
▲
by
matt_kantor
10mo ago
Why not use blank lines? (I suspect the answer might be "my code formatter deletes them", which is a damn shame.)
98.
▲
by
matt_kantor
10mo ago
Care to elaborate? It's not obvious to me why/how that would happen. In fact, my experience so far tells me that code with tons of "why" comments (and possibly some "what"s as well) makes LLMs less likely to br
99.
▲
by
matt_kantor
10mo ago
I like this framing, but might add to it: "comments should add relevant information that is missing and which can't easily be added by refactoring the code ".
100.
▲
by
matt_kantor
10mo ago
I wholeheartedly agree, but it's their award so they get to make up the rules.
101.
▲
by
matt_kantor
10mo ago
> representatives of Sandfall Interactive agreed that no gen AI was used in the development of Clair Obscur: Expedition 33 Even if all the AI-generated content had been replaced before release, this would still be a lie.
102.
▲
by
matt_kantor
10mo ago
The ts-regexp package `infer`s out of template literal types to do its magic. That's possible from JSDoc too: https://www.typescriptlang.org/play/?filetype=js#code/PQKhCg... The behavior of ts-regexp is not e
103.
▲
by
matt_kantor
10mo ago
Perhaps I should've expanded further to " the specific JSDoc dialect supported by the TypeScript compiler and TypeScript syntax are two alternative ways to …". Unlike ISO C++ I'm not aware of any standard for what JSDoc
104.
▲
by
matt_kantor
10mo ago
Thanks for the reply. > RegExpExecArray gives you a structure that looks different between the jsdoc version and the typescript version. > The typescript version has `.groups` inside RegExpExecArray. The JSDoc version has `.groups` to
105.
▲
by
matt_kantor
10mo ago
> it's implicitly typed by typescript automatically What do you mean by this? Can you share an example? Regular expressions do not act as type guards, and there's no way to express a type that allows one regular expression but
106.
▲
by
matt_kantor
10mo ago
Yes. As described in the article, the TypeScript compiler understands type annotations that are written in JSDoc syntax. So you can use `tsc`, just like you would to check `.ts` files.
107.
▲
by
matt_kantor
10mo ago
By "JSDoc is TypeScript", culi means "JSDoc syntax and TypeScript syntax are two alternative ways to describe types to the TypeScript compiler/language services, and the two syntaxes have nearly-identical expressive powe
108.
▲
by
matt_kantor
10mo ago
> IDEA adds its own analysis on top of that provided by the language server. IDEA implements its own analysis and doesn't use tsserver at all. Its semantics diverge in subtle ways, I believe in both directions (some code that tsserv
109.
▲
by
matt_kantor
10mo ago
I don't understand the second part of your comment (that's a value, not a type), but the first part looks like this: /** @typedef {`${number}.${number}.${number}`} SemVer */ Here's a playground: https:
110.
▲
by
matt_kantor
10mo ago
Do you have a particular reason to care about the implementation details of your tooling's type checker?
111.
▲
by
matt_kantor
10mo ago
I believe they're talking about gradual typing[0]. [0]: https://en.wikipedia.org/wiki/Gradual_typing
112.
▲
by
matt_kantor
10mo ago
I think this philosophy only reasonably applies behind the public-facing API gateway. So the GraphQL API server wouldn't be part of the microservice graph that you're trying to make into a polytree (you also wouldn't consider
113.
▲
by
matt_kantor
10mo ago
Seems like we have broadly-similar perspectives, though I do find it a bit incongruent that the DOM preserves comments while the CSSOM doesn't. It feels like they ought to be in alignment one way or the other (though I also understand
114.
▲
by
matt_kantor
10mo ago
I see. I was under the impression that you were saying the "mistake" from the post was wrong in its premise. But I guess that's incorrect, rather you think that people shouldn't use the CSSOM for use cases when comments
115.
▲
by
matt_kantor
10mo ago
Problem is, the CSSOM models that more like this: <rule selector="h1, h2"> <style> <property name="color" value="red" /> </style> </rule&g
116.
▲
by
matt_kantor
10mo ago
> in HTML you have a tree of nodes but comments can be anywhere Maybe I'm misunderstanding, but no they can't. For example the comment here is not a comment, but part of the URL: <a href="https://examp
117.
▲
by
matt_kantor
11mo ago
> if you're a junior engineer, then I have maybe 1 hour with you per week and I probably shouldn't spend that time being your English teacher It's not important enough to make a big deal out of, but if I see it over and ov
118.
▲
by
matt_kantor
11mo ago
I know I've seen some people recommend 50 (my guess is that's to make some room for metadata from commands like `git log --online` in an 80-column terminal?) but I've personally always capped all lines at 72, including the fi
119.
▲
by
matt_kantor
11mo ago
> A good dev isnt necessarily a good writer. I think they should be (or at least "decent"). Should this reasoning be applied to other skills involved in software engineering? If someone never writes tests, or over-architects
120.
▲
by
matt_kantor
11mo ago
I may be misunderstanding: are you saying a commit message with a 200-character-long first line could be an example of a "good" message to you/Googlers? To me that seems like something that could almost certainly be summarize
More ›