Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jy14898
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
jy14898
1y ago
example: type FireNuke = boolean; type DontFireNuke = boolean; function perhapsFireNuke(action: FireNuke); you wouldn't want to call perhapsFireNuke with DontFireNuke, even though the types are compatible
32.
▲
What we know (so far) about CSS reading order
(css-tricks.com)
1 points
by
jy14898
1y ago
|
0 comments
33.
▲
by
jy14898
1y ago
Now make it an HTTP API where content negotiation always succeeds
34.
▲
by
jy14898
1y ago
I think I take the attitude that you parse/validate data as soon as possible (ie when reading a file/coming from an API), so that the rest of the code can rely on typechecks alone. That said, I come from a background where the lan
35.
▲
by
jy14898
1y ago
> An API call, reading a file, calling less well-behaved libraries or making some system calls can all result in objects that pass compile-time checks but will cause a runtime exception or unexpected behavior. Seems crazy to me to have t
36.
▲
by
jy14898
1y ago
unsafe-hashes is a decent alternative
37.
▲
by
jy14898
1y ago
Sounds similar to something one of my classmates worked on at uni https://www.bristol.ac.uk/research/groups/trustworthy-system...
38.
▲
by
jy14898
1y ago
FYI they've changed the FAQ and it now claims they're SOC2 compliant
39.
▲
by
jy14898
1y ago
ERB: https://en.wikipedia.org/wiki/ERuby
40.
▲
by
jy14898
2y ago
> You think the sliders ought to be a wider range? Perhaps, or just no sliders (or something else). To illustrate, setting all the sliders to the min gets the correct order of magnitude, setting all the sliders to the middle gets the cor
41.
▲
by
jy14898
2y ago
Tiktok has rotted my brain for this length of article
42.
▲
by
jy14898
2y ago
Some feedback: 1. Why are factors reorderable? axb = bxa 2. Why are factors pickable? Is it coincidence that all of todays choices are useful (or did I mess it up) 3. The ranges/sliders ruin it for me IMO, they pick the order of magnit
43.
▲
by
jy14898
2y ago
Another way (I think) is to emulate a USB headset and play/listen to data encoded in audio
44.
▲
by
jy14898
2y ago
I was thinking the same until they mentioned "WASI components" for using HTML. I'd still prefer HTML first though
45.
▲
by
jy14898
2y ago
It's interesting how the difference appears, a strange artifact. Very fun to feel like a pro clicking through the differences quickly
46.
▲
by
jy14898
2y ago
If it saved 8.1GB, by your measure it'd also not be a big win?
47.
▲
by
jy14898
2y ago
> This is not to be confused with tail call optimization of Python functions, which is currently not implemented in CPython. > This new interpreter type is an internal implementation detail of the CPython interpreter. It doesn’t chang
48.
▲
by
jy14898
2y ago
https://reparent.jarhar.com/ . Perhaps a good example is popping out a form when the user wants to navigate elsewhere to answer the questions.
49.
▲
by
jy14898
2y ago
> I could imagine doing a bunch of weird stuff where you don't know exactly what box you're typing in to. What stops malicious JavaScript that would have used moveBefore() to just add key event listeners?
50.
▲
by
jy14898
2y ago
Maybe I'm missing something, but there isn't any global state attached to window? They attach a constructor for state to the window, but that isn't the state itself - it just returns a smart state object.
51.
▲
by
jy14898
2y ago
They're talking about the post itself and its structure
52.
▲
by
jy14898
2y ago
Does everyone really mean doom scrolling when they talk about these issues? For me personally, it's definitely about dopamine and not about negative emotions, yet everyone uses the phrase doom scrolling - am I the odd one out? For exam
53.
▲
by
jy14898
2y ago
You might be interested in http://omrelli.ug/g9/gallery/ too
54.
▲
by
jy14898
2y ago
By this logic, a broken 24 hour clock stuck at mid day has 0 error.
55.
▲
by
jy14898
2y ago
A function doesn't need to be impure to communicate with a db. It can describe the actions without executing them, returning the actions to let some other impure process execute the effects.
56.
▲
by
jy14898
2y ago
To monitor the compost
57.
▲
by
jy14898
2y ago
You need to add a second clock in your cameras background which quickly spins so that when your video freezes for others, they can see you've disconnected and you're not stoically ignoring them
58.
▲
by
jy14898
2y ago
Interesting that under the "URAvatar from Phone Scan" section, the first example shows a lady with blush/flush, which only appears in the center video when viewed straight on - the other angles remove this
59.
▲
by
jy14898
2y ago
> QR codes can contain a limited set of data. There's no possibility of a buffer-overflow or malicious program. Source?
60.
▲
by
jy14898
2y ago
Now they know I'm 100% body fat
More ›