Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fregante
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
fregante
2y ago
I know you’d rather see it native but if you’re open to sponsor its development, I could make a custom addon for that.
2.
▲
by
fregante
2y ago
This is a good read for JS developers. TL;DR: they’re not the same thing. Only sometimes they match (e.g. `id`) but often they don’t. Something fun: JSX does not use attributes, even if they look like it. That’s why they have unusual nami
3.
▲
by
fregante
3y ago
https://github.com/refined-github/refined-github I never intended it to be a side project, I just liked the extension and started contributing heavily to it, to the point where I became the maintainer for the next seve
4.
▲
by
fregante
4y ago
The fun part is that they completely botched an experience that iOS can delivery natively. I built a mini app to extract the HSL stream from a URL and have iOS play it. It usually solves my problems with it: https://arte.vercel.a
5.
▲
by
fregante
4y ago
Only pre-existing MV2 extensions can be updated. New extensions have had to be MV3 for exactly 12 months already: since January 17th 2022.
6.
▲
by
fregante
4y ago
Look into chrome.storage.session, they created it explicitly to allow in-memory storage for those scenarios. Not as easy as just setting a property, but good enough.
7.
▲
by
fregante
4y ago
> Please do not treat them this way. They do not grant access to your account. Can you expand on that? Once I have such code, what’s stopping me from “stealing” the account?
8.
▲
by
fregante
4y ago
Italy has SPID. It’s a federated login system based on your fiscal code (every Italian has one). You can use it to log into any government service and potentially banks and such. If you do lose access to your 2FA (required, it’s your phone)
9.
▲
by
fregante
4y ago
I don’t think it's actually a net benefit. Adding the wrong value degrades the experience. I've seen links marked with `role=button` for no reason and generally roles added when one is implied (role=link is implied on anchors for
10.
▲
by
fregante
4y ago
Digital menus aren't bad, but very few can implement them effectively. I do like having access to the menu for the whole dinner though and not have to wait for the waiter, ever. In general, yeah, give me a piece of paper, there are far
11.
▲
by
fregante
4y ago
If this becomes illegal, it will pretty much mark the death of free/open ML and its sets. If you can't train on data before asking for permission, the data set becomes sparse. Thje only people who will be able to afford this will
12.
▲
by
fregante
4y ago
Back when npm didn’t have any “similar name” restrictions I did the same for some popular packages. My redirects also helped me a couple of times as I wonder whether a package name had a dash or not. https://github.com/frega
13.
▲
by
fregante
5y ago
Yeah but… money. You can’t pay rent with smiles. Accepting donations would probably mean having to work less at their main job. Or they could re-donate it. There are people willing and able to pay, leaving those money on the table is pure w
14.
▲
by
fregante
5y ago
JSX requires a build though, it's easier to enforce syntax when a missing character will just work while writing it . There are no JSX errors at runtime for this reason.
15.
▲
by
fregante
5y ago
It's kind of weird to work for free though, isn't it? Sure it's something we like doing, but I really see no reason to reject free money. For uBlock this free money would be a fairly large amount, I'm sure. Even if that&
16.
▲
by
fregante
5y ago
GitHub Sponsors is a technical solution, but I still need to handle the legal side of the equation.
17.
▲
by
fregante
5y ago
> And some donated more than others That's unrelated to donations. One can accept donations without putting their soul on sale. As an extension developer I get offers for buying my extensions or adding donator-specific functionality
18.
▲
by
fregante
5y ago
Think of TypeScript as writing JavaScript with inline tests: It takes longer but it produces "safer" code (with fewer bugs) Is it worth learning it? I'm sure type-less job offers will continue to exists in large numbers, so i
19.
▲
by
fregante
5y ago
For those who don’t understand what it’s doing (like me at first): You first have to host these index.html and sw.js on a regular server (or use the URL in the readme) and then this service will serve a folder of your choice directly from
20.
▲
by
fregante
5y ago
It's interesting that you mention Chrome’s silliness when I find Firefox’ dev tools to be severely lacking, especially for WebExtensions. Examples include: - complete inability to run code from the console into the content script
21.
▲
by
fregante
5y ago
Async iterables are async generators. They call .next() on the iterable, that returns a promise, the promise resolves with either a new item to loop with, or with `done`, which will stop the loop.
22.
▲
by
fregante
5y ago
Your words: > One might be tempted to use the thenable interface (don’t!): The code that followed was fine and it had no race condition. > Seems like it would work, but it actually only waits for the promises returned from item() and
23.
▲
by
fregante
5y ago
> the pattern of awaiting in an async parallel loop in general reduces to what I wrote, does it not? No. async item => {await item()} // Promise<void> item => item() // Promise<ReturnValue<
24.
▲
by
fregante
5y ago
That’s just an example piece of code. If I used your code there wouldn’t be an `await` in the loop and people wouldn’t understand.
25.
▲
by
fregante
5y ago
`for await` is for async iterables, which is different. The loop body will still block the loop. Compare it to the all/map example I wrote.
26.
▲
by
fregante
5y ago
My guess is that they were using /.mov$/ to check the username, which is missing an escape.
27.
▲
by
fregante
5y ago
Thanks! I think it wouldn’t await the whole loop though for (const item of iterable) async do { await item() } This would be equivalent to Promise.all(arr.map(async item => { await item() }) Notice the l
28.
▲
by
fregante
5y ago
This reminds me of something I’d like to see in JavaScript: Loops that accept `await` in their body without pausing the whole loop. This is already possible with: await Promise.all(arr.map(async item => { await item() }) … b
29.
▲
by
fregante
5y ago
3.5 I was excited to see action composition until I realized that the composed action will still be showed as one step and that it can just compose actions instead of whole workflows. I want to share whole jobs across my repos, including
30.
▲
by
fregante
5y ago
Each tab is a checkbox (selected or not), an input field, a drag handle for the page and a drag handle for the window, depending on how fast you start dragging and in which direction. If you hover it it shows a set of buttons, but if it’s f
More ›