Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spartanatreyu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
91.
▲
by
spartanatreyu
9mo ago
If Offline meant "don't bother me", it would be called "Don't bother me", or "do not disturb", and not "Offline"
92.
▲
by
spartanatreyu
9mo ago
No, daisyui is a bandaid over the class soup that is tailwind. It's treating the symptom rather than the cause. The solution is not to use tailwind in the first place.
93.
▲
by
spartanatreyu
9mo ago
> My point is that defining a complex behavior for a custom tag is not possible without js. Not necessarily. CSS alone can allow for a lot of useful complex behaviour. You can customise how something renders (or not) or is interactable b
94.
▲
by
spartanatreyu
9mo ago
If you're not actually getting anything semantically useful out of the element, then you may as well use a custom element. Also by using a custom element instead of a class, you're saying this isn't anything else other than w
95.
▲
by
spartanatreyu
9mo ago
It didn't solve frontend, it sold developers one lie (i.e. ui = f(state) ) and managers another (developers are interchangeable gears). Problems are only truly solved by the folks who dedicate themselves to understanding the problem, t
96.
▲
by
spartanatreyu
9mo ago
React's hello world: ```js <div id="root"></div> <script> import React from ' https://esm.sh/react@19 '; import ReactDOM from ' https://esm.sh/react-dom@19&#
97.
▲
by
spartanatreyu
9mo ago
I'm trying to figure out what you're trying to say here. You didn't really define what "cube coordinates" or "piece coordinates" are. If you're trying to reduce the size of the state needed to represe
98.
▲
by
spartanatreyu
9mo ago
Yeah, but if they controlled firefox, there'd probably be less captchas to complete
99.
▲
by
spartanatreyu
9mo ago
Other comments here are good, but one thing that's worth pointing out: Encoding time isn't as important as decoding time since encoding is generally a once-off operation. Yeah, we all want faster encodes, but the decodes are the m
100.
▲
by
spartanatreyu
9mo ago
Nah, my 2 year old phone is OLED and has the top of my browser burnt into the screen. And I'm someone who has their screen turn off quickly to save battery. I can't imagine how annoying it would be to watch a movie or play a game
101.
▲
by
spartanatreyu
9mo ago
True, but macos x has never had good window resizing decisions.
102.
▲
by
spartanatreyu
10mo ago
The problem is that they keep adding new ai "features" all under different names and different settings, then shuffling the settings around. Having a "master switch" doesn't matter, since their standard operating pr
103.
▲
by
spartanatreyu
10mo ago
How is googling it meant to work when they keep changing what the AI settings are called each month?
104.
▲
by
spartanatreyu
10mo ago
Ah, but if AI was correct, I wouldn't need to turn it off.
105.
▲
by
spartanatreyu
10mo ago
> Why not change the setting simply? My default settings are stored in a 11922 line json file. Am I expected to read that entire file to find the setting I'm after? Am I expected to do so when I don't know what the setting is c
106.
▲
by
spartanatreyu
10mo ago
That's a poor example since it isn't accessible and doesn't work if a pending JS or CSS network request is preventing it from functioning. This is the HTML version, it's not susceptible to halted execution, and it is acc
107.
▲
by
spartanatreyu
10mo ago
Your examples has groups only typed as { [key: string]: string }. It isn't narrowed down to the actual named capture groups inside the regex. For the whole semver example, we'd want something typed as: { major: string, minor: stri
108.
▲
by
spartanatreyu
10mo ago
You wouldn't use `test()` like in your example. `test()` only returns a boolean, you want to look at `exec()` which returns the result of the regular expression (typed as: `RegExpExecArray | null` which you can narrow down to `RegExpEx
109.
▲
by
spartanatreyu
10mo ago
Thanks for the example, I had a good play around with it. The second part of my comment is a value yes, but it's implicitly typed by typescript automatically. I was asking about how to use that type (and it's internals) in jsdoc.
110.
▲
by
spartanatreyu
10mo ago
This is great for fantasy roleplaying games like D&D. You could write whatever you need and transliterate it into Dwarvish.
111.
▲
by
spartanatreyu
10mo ago
Not that person, but is there an easy way to write something like a basic semver? export type SemVer = `${number}.${number}.${number}`; Could you extend it to work with regex groups like: export const SemVerRegex = /^(?<major>0|[
112.
▲
by
spartanatreyu
10mo ago
No, dealing with tables was like trying to build a house out of tempered glass. With css grid, I can tell each element which area or column+row to occupy. If I add or remove a random element, the rest of the elements stay in the correct pla
113.
▲
by
spartanatreyu
11mo ago
It's easy to prevent clickjacking attacks by not allowing your website to be embedded in an iframe. You can do that by either adding a header to your network requests, o̶r̶ ̶b̶y̶ ̶a̶d̶d̶i̶n̶g̶ ̶t̶h̶e̶ ̶f̶o̶l̶l̶o̶w̶i̶n̶g̶ ̶m̶e̶t̶a̶ ̶t̶a
114.
▲
Trick users and bypass warnings – Modern SVG Clickjacking attacks
(lyra.horse)
336 points
by
spartanatreyu
11mo ago
|
55 comments
115.
▲
by
spartanatreyu
11mo ago
How? It doesn't have anything to do with progressive enhancement.
116.
▲
by
spartanatreyu
11mo ago
> Bun has a better standard library than Deno. You get a DB driver, S3 client, etc which on Deno are all third party deps. Aren't you hosting Bun on a 3rd party host though? Wouldn't you want to use the 3rd party's own dep
117.
▲
by
spartanatreyu
11mo ago
I mentioned that in my other comment. When CSS doesn't load, it's immediately apparent and the user knows they need to reload the page.
118.
▲
by
spartanatreyu
11mo ago
Yes, any request can get stuck at any time. That is what's happening any time you've seen a website that randomly decides to load without styles, or with a missing image. The good thing is that it's very apparent when that ha
119.
▲
by
spartanatreyu
11mo ago
This is the wrong way of looking at it. Making a website's basic functionality work without JS isn't just for the random users who switch off their browser's JS runtime. It's also for the people who have a random network
120.
▲
by
spartanatreyu
11mo ago
> Will this make it more or less likely for people to use Bun vs Deno? I'm not sure it will make much of a difference in the short term. For those who were drawn to Bun by hype and/or some concerns around speed, they will conti
More ›