Recent submissions

Comment · 2 years ago
Promises are, technically speaking, "abstracted crap".

So is abstracted crap only ok if it's already in the JS standard library?

Comment · 3 years ago
How _do_ you get a 3px gap though?
Comment · 3 years ago
As a frontend dev, what are good resources to learn about principles and heuristics that I can apply in my work?

I have some knowledge, albeit very primitive, that I picked up from an HCI introduction and some good designers, but nothing too technical / formal yet.

Comment · 3 years ago
What do you do, when you straighten out your spine? I mean in terms of movement, or do you just change your posture?
Comment · 3 years ago
> In no time we'll see SO spammed with questions using `computed(async () => ...` or race conditions when using `effect`.

As opposed to the very few questions about rxjs, where people understand everything perfectly.

Comment · 4 years ago
Good to know, thank you
Comment · 4 years ago
Wouldn't just `.` do the same as `d;` in that case?
Comment · 4 years ago
As most people will - die without legacy and respect, because they are not a corporate overlord.

I guess.

Comment · 4 years ago
Hi, congrats on the launch.

On my screen, the website is scrollable. Not sure if the animation needs to have top: 30vh and height: 80%

Also: there is a big layout shift right after loading.

Comment · 4 years ago
You can also write the array first, without using enum:

const tokens = ['parenOpen', 'bang', 'plus', 'minus'] as const;

type Token = typeof tokens[number];

type TokenTable<T> = Record<Token, T> // alias for { [key in Token]: T }

const isToken = (t: string): t is Token => tokens.includes(t);

const patterns: TokenTable<RegExp> = { bang: /\+/, // rest }

Comment · 4 years ago
Do you have an example for what you want to do, with an object before and after mapping? I don't understand what you mean by "functionally map over a typed object by key"
Comment · 4 years ago
For one, it's a wrapper in React, so no need to implement the glue code yourself if you want to integrate PDFs in your web app.

Also, it appears to be feature-rich and yet easy to use for simple use cases.

Comment · 4 years ago
If you connect raycast with your calendar, you can view your schedule from within raycast.

If there is an upcoming meeting with a zoom/teams/<call app> link attached, you can join by pressing enter.

Never had to look for a meeting link again.

I'm not sure if Alfred has this as well, but nevertheless, i just love this feature

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton