Recent submissions

Comment · 3 months ago
> Should “Cancel” be a link? No! Its job is to close the edit view. Not only does making this a link incorrectly communicate its purpose—visually and otherwise—but it saddles the form “control” with lots of features, like bookmarking and middle-clicking, that have incorrect behavior.

I don’t get this. Cancel takes you back to the read-only view of the form. So if /resource/edit is the form, cancel just takes you to /resource.

So is this “performing an action” or “navigating somewhere”? Hard to tell. I’m saying that if cancelling a form edit just means ditching the local state to go back to the normal view, that should be a navigation.

Someone straighten this out for me.

Comment · 6 months ago
I mean…the site that broke should know what to do with arbitrary query strings. If your site breaks when someone puts in an invalid query string, that’s on you?
Comment · 4 years ago
Great content. Give it me to me as a daily-dose newsletter :)
Comment · 5 years ago
Comment · 5 years ago
Working now! This is great. As somebody interviewing right now, something like this would be great for drilling React concepts.
Comment · 5 years ago
Comment · 6 years ago
Comment · 6 years ago
Definitely. But it's the healthy kind of pain, "ripping off the bandaid".
Comment · 6 years ago
I know right?! The language is simple and entertaining.

There's also a hilarious passage about a wealthy guy who gets carried everywhere, and becomes so numbed by luxury that he can't tell whether he's sitting down or not.

Comment · 6 years ago
For some age-tested wisdom on this topic, read Seneca's On The Shortness Of Life:

https://www.globalgreyebooks.com/ebooks/seneca/on-the-shortn...

"But one man is possessed by an avarice that is insatiable, another by a toilsome devotion to tasks that are useless; one man is besotted with wine, another is paralyzed by sloth; one man is exhausted by an ambition that always hangs upon the decision of others, another, driven on by the greed of the trader, is led over all lands and all seas by the hope of gain; some are tormented by a passion for war and are always either bent upon inflicting danger upon others or concerned about their own; some there are who are worn out by voluntary servitude in a thankless attendance upon the great; many are kept busy either in the pursuit of other men's fortune or in complaining of their own; many, following no fixed aim, shifting and inconstant and dissatisfied, are plunged by their fickleness into plans that are ever new; some have no fixed principle by which to direct their course, but Fate takes them unawares while they loll and yawn—so surely does it happen that I cannot doubt the truth of that utterance which the greatest of poets delivered with all the seeming of an oracle: 'The part of life we really live is small.'"

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton