Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
felixfbecker
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
felixfbecker
8mo ago
The author makes the argument that in the age of LLMs more type safe languages will be more successful than less type safe ones. But how does that support the claim that Go is more suitable than JavaScript? TypeScript is more type safe than
2.
▲
by
felixfbecker
8mo ago
That is like saying the kernel/sandbox hypervisor can access those things. The point is that the sandboxed code cannot. In browsers, code from one origin cannot access those things from another origin unless explicitly enabled with COR
3.
▲
by
felixfbecker
1y ago
MCP doesn't force models to output JSON, quite the opposite. Tool call results in MCP are text, images, audio — the things models naturally output. The whole point of MCP is to make APIs digestable to LLMs
4.
▲
by
felixfbecker
1y ago
An SVG doesn't need to support scripting. When you load an SVG through an <img> tag for example, no <script>s run either (only if you use <iframe>, <object>, or inline in HTML5). When you serve the SVG (or the
5.
▲
by
felixfbecker
1y ago
OpenAI and Anthropic respect robots.txt afaik
6.
▲
by
felixfbecker
2y ago
Microsoft contributes a lot of web standard implementations upstream to Chromium. They are not just letting Google do all the work as your comment makes it sound like. They could have chosen to do the same with Firefox, which means the reas
7.
▲
by
felixfbecker
2y ago
Right, I use a browser extension that automatically declines consent. On my personal homepage I also use anonymous, privacy-preserving, GDPR-compliant analytics that doesn't require prompts. Other websites made a choice.
8.
▲
by
felixfbecker
2y ago
That's basically how goroutines work in Go. You opt into concurrency with the `go` keyword, while it's blocking by default. While in JS it's concurrent by default and you opt-in to blocking with the `await` keyword. (Except i
9.
▲
by
felixfbecker
2y ago
Any public information eventually is priced into the stock price by the market. Say you buy the stock even though you didn't read the DEI statement, but other people bought the stock before you having read it. Their purchases drove up
10.
▲
by
felixfbecker
2y ago
I think the kind of teams that always stay on top of the latest TypeScript version and use the latest language features are also more likely to always stay on top of the latest Node versions. In my experience TypeScript upgrades actually mo
11.
▲
by
felixfbecker
2y ago
This is true, but in other cases they added keywords in ways that could work with type stripping. For example, the `as` keyword for casts has existed for a long time, and type stripping could strip everything after the `as` keyword with a m
12.
▲
by
felixfbecker
2y ago
> In SVG, all shapes are absolutely positioned. Text does not wrap automatically. This is not really true — you can position elements inside the SVG coordinate system using percentages and you can mix absolute coordinates and percentages
13.
▲
by
felixfbecker
2y ago
I continue to be baffled how many websites rely on YouTube embeds to show videos, especially marketing/brand websites where you don't usually want other unrelated logos on the page. It's really not that hard to self-host and
14.
▲
by
felixfbecker
2y ago
If you just use it in the browser, <svg> is all you need. The browser is smart enough to parse it as SVG based on the context (e.g. if it's embedded inside HTML, if it's linked from an <img>, or if it's served as
15.
▲
by
felixfbecker
2y ago
> In SVG land, there is no way to orient around a multiline text box's corners, you can only align the baseline of the first line of text. In fact, there is no way to set a width on a box and have text wrap to the next line when it
16.
▲
by
felixfbecker
2y ago
It would be amazing if browsers just implemented all the features that were already specified in SVG2. Currently it seems like any new spec work on features that would be amazing for the web (e.g. SVG connectors) has been completely paused
17.
▲
by
felixfbecker
2y ago
<script> in SVGs is also not a concern nowadays if you use a CSP (even for user-uploaded content).
18.
▲
by
felixfbecker
2y ago
On top of that, if you use the TypeScript version, the abstractions are often... weird. They feel like verbatim ports of the Python implementations. Many things are abstracted in ways that are not very type-safe and you'd design differ
19.
▲
by
felixfbecker
2y ago
I personally think S/MIME is better than PGP. The "key exchange problem" is solved more pragmatically and user-friendly (send an unencrypted but signed email once, your/their client will automatically remember keys for e
20.
▲
by
felixfbecker
2y ago
and different currencies have different default precisions. So if you're dealing with multiple currencies, now you need both client and server to have a map of all currency precisions for formatting purposes that they agree on. What&#x
21.
▲
by
felixfbecker
3y ago
Fair, but in my view if you have engineers implementing your marketing homepage they should be able to do this for you just like they write the HTML and CSS for you and figure out the deployment. And if the marketing team uses Webflow or Fr
22.
▲
by
felixfbecker
3y ago
tabindex only affects tab order (of interactive elements), not the order that a screen reader navigates and reads out content (including non-interactive elements)
23.
▲
by
felixfbecker
3y ago
There already is one in ARIA that supports this: aria-owns [1] and to some degree aria-flowsto [2] But with everything in ARIA, it always depends on real-world support of screen readers, which is very poor. You have to work with what actual
24.
▲
by
felixfbecker
3y ago
Flexbox order doesn't affect accessibility tree order, so that's bad for accessibility. DOM order should make semantic sense.
25.
▲
by
felixfbecker
3y ago
The `allow` attribute on iframes is a relatively recent API addition from 2017 https://github.com/whatwg/html/pull/3287
26.
▲
by
felixfbecker
3y ago
The main takeaway here should be to avoid YouTube embeds whenever possible. YouTube is way overused just to embed a video on a website. I'm baffled it's even commonplace on marketing homepages, why would you want YouTube's br
27.
▲
by
felixfbecker
3y ago
Exactly — It's not about the LEDs, it's about the degree and adjustment. Especially coming from a high pickup or SUV while sitting in a sedan within low distance like in city driving.
28.
▲
by
felixfbecker
3y ago
May I ask how you enabled it through OBD? Would love to enable it on mine too.
29.
▲
by
felixfbecker
3y ago
You don't have to override the native styles of UI controls with CSS. If you don't add any CSS, they will look just like in native apps. It's a choice, just like you could implement your completely custom controls in native a
30.
▲
by
felixfbecker
3y ago
What the media calls "Downtown" is really mostly offices. There also isn't really any district called "Downtown". There is FiDi (financial district), which is definitely all offices (dead on weekends), and SoMa (sou
More ›