Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
SebastianKra
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
SebastianKra
1y ago
I thankfully migrated or left all Aurelia projects, but every time someone mentions it, I remember new horror stories. Its .html temples were shipped unmodified directly to the client. Except they weren't actually html, and sometimes t
62.
▲
by
SebastianKra
1y ago
Yeah, so you can't blame every performance issue you come across on a single topic, just because you've seen a YouTube video. If you look at the performance graph, you'll see that most of the time is spent on recalculating cs
63.
▲
by
SebastianKra
1y ago
IMO when you do control-flow in catch blocks, you're fighting against the language. You lose Typescripts type-safety, and the whole "if e instanceof ... else throw e" -dance creates too much boilerplate. If the config file n
64.
▲
by
SebastianKra
1y ago
iCloud lost all my data twice. Before that, it was always stuck syncing some unknown files. I also ran into problems where conflict resolution in Apples own office apps wouldn't work and I'd just lose one of the version. So yes.
65.
▲
by
SebastianKra
1y ago
(I didn't say to not use classes) Depends on the conventions of the project. Tailwind is acceptable (shadcn is a great starting point), but if I write them from scratch, I use css modules. You don't write component styles that oft
66.
▲
by
SebastianKra
1y ago
That's what components are for. One of the issues with classes is that you inevitably run into a behavior that requires additional dom nodes or js. For example, what if your most of your buttons need to show loading states [^1]. Bootst
67.
▲
by
SebastianKra
1y ago
I'm to young for Netscape, but do you mean this [^1] interface, that's truncating the subject and hiding the body? Also, which use-cases do you have where you need to see 20 emails at once? [^1]: https://www.pixelbeat.o
68.
▲
by
SebastianKra
1y ago
It's really convenient with search-as-you type patterns, where each keystroke updates an input in standard priority, and then a background update starts, suspends for the network query, and renders the list. Within the constraints of R
69.
▲
by
SebastianKra
1y ago
At least it would get rid of SEO blogspam, since these sites have "reputable" companies behind them. Search engines would probably skip any site that admits to being AI-generated.
70.
▲
by
SebastianKra
1y ago
I used to implement a system like this. Unfortunately, its not accessible. You at least need to keep a ref to the button in order to add the aria-haspopup attribute and return focus back to the button when the modal closes. This is why Radi
71.
▲
by
SebastianKra
1y ago
Thinking things through is desirable. But in many discussions both sides basically "vibe-out" what they think the objective truth is. If it's a fact that can be looked up, just get your phone and don't stall the discussi
72.
▲
by
SebastianKra
1y ago
This would probably be really useful when integrated as an automatic intermission before opening some apps like OneSec. As a desktop browser extension I would buy this in a heartbeat.
73.
▲
by
SebastianKra
1y ago
I'm also disappointed in Apple right now, but the screenshots of the Calendar and Gmail Apps in this post are even worse. Content in Gmail is separated by kilometers of whitespace with not a divider in sight. The calendar reserves 10%
74.
▲
by
SebastianKra
1y ago
Eh, it could be worse. It looks like the over-the-top effects are limited to a few top-level elements such as the Navigation View, Homescreen, and Control Center. I wouldn't be surprised if these get dialed back in the future - especia
75.
▲
by
SebastianKra
1y ago
Keyboard-accessibility isn't the only advantage of formatting characters. The most frustrating, throw-my-device-at-the-wall issue with 90% of WYSIWYG text editors, is the insane handling of invisible input states. - If you begin writin
76.
▲
by
SebastianKra
1y ago
Nevermind richtest company. It's like every year they release three new half-baked apps, that will not receive updates in years. Just focus on a core and let third-party apps do what they're good at.
77.
▲
by
SebastianKra
1y ago
There's an issue when integrating Signals (or Stores) directly into templates. TypeScript becomes unable to track how bindings relate to each other. This is described in the Solid documentation: https://docs.solidjs.com/
78.
▲
by
SebastianKra
1y ago
That's simply not true. function MyProvider({ children }) { const [value, setValue] = useState() return <Context.Provider value={value}> {children} </Context.Provider> } In the above example
79.
▲
by
SebastianKra
1y ago
Okay I see where you're coming from. > if that change also didn't enforce that way of thinking My gut says that your mental model would lead to overall more spaghetti than the current one. I also think that remounting all the D
80.
▲
by
SebastianKra
1y ago
It's not. Try some inputs in Figma or basically any numeric input: - Focus an Input that only accepts numerical values - Enter some non-numeric text - Focus back out My pattern is fairly common when you pay attention to it. I'm n
81.
▲
by
SebastianKra
1y ago
> Call it contrived, but maybe we want to add drawings to our tasks. With different brush colours That's when you lift state up - either to the parent component, or put the value in local storage. Both as a user and as a developer,
82.
▲
by
SebastianKra
1y ago
There can be multiple reasons. But iOS went 6 years with skeumorphic icons (post-iPad, post-Retina) so mixed-dpi screens probably weren’t the only factor.
83.
▲
by
SebastianKra
1y ago
It’s not a loop, it’s a spiral. Each idea brings a (partial over-)reaction to the last one. For example, flat monochrome icons emerged, because previously the UI was massively overshadowing the main content [^1]. So we traded the recognizab
84.
▲
by
SebastianKra
1y ago
Well how do you do server-side validation? Because now I have the impression that you're just defensively writing a bunch of if-statements. Or worse, you rely on html client-side form validation only.
85.
▲
by
SebastianKra
1y ago
That comparison is apples to oranges, because React components are typically much smaller than Vue components (think 20 components in one file). So while its true that a state update will rebuild an entire component, that diff might still o
86.
▲
by
SebastianKra
1y ago
Apple's Displays yes. But I got a Phillips 4k OLED recently, and I'm already regretting that decision. I need to turn it off every 4 hours to refresh the pixels. Sometimes an entire line of pixels is brighter than the rest. I wipe
87.
▲
by
SebastianKra
1y ago
This happens every single time this framework is posted. - The post makes some outlandish, to-good-to-be-true claims. - It traction because A: it mentions React and B: who doesn’t sometimes wish development could be simpler. - Readers call
88.
▲
by
SebastianKra
1y ago
Which they can still do. Printed HTML is perfectly serviceable (definitely better than non-printed PDF). Or are you arguing that there are somehow more people reading printed papers than digital?
89.
▲
by
SebastianKra
1y ago
That seems contradictory, when Latex is rather famously imprecise at placing figures and such. Weren't both languages (at least at some point) intended to take layouting control away from the writer? But regardless, I think that, in ad
90.
▲
by
SebastianKra
1y ago
> That doesn't work for the model defined in this post. Because now each post is a request to the server instead of one single request that returns a rendered list of posts. Thats where you’re wrong. The JSX snippet that I posted ab
More ›