Better HN
topnewbestaskshowjobs
Log inSign up

verisimilidude

1,086 karma · joined May 25, 2012 (14y ago) · 302 submissions

Submissions

comment 2mo ago · link · parent

It really depends.

For high-level strategic conversations, I use Fable.

For planning, I use Opus or Sol. Sol is generally preferred; it’s faster, cheaper, and less verbose. But I still find Opus more capable on the most nuanced or complex tasks.

For planned implementation, I use Sonnet.

For one-shot unplanned implementation, I’ll use whatever model seems best for the task. FWIW, I’m increasingly turning to Grok here.

I use Luna all over my workflow for reporting.

comment 5mo ago · link · parent

Claude is very good at design IF you encode your design system/specs into skill files (or similar).

Opus 4.7 made this a practical approach. 4.8 improved it. Fable 5 has improved it more.

comment 11mo ago · link · parent

Thanks for sharing, that’s an interesting framework. The self-closing tags are very nice.

Unfortunately, I don’t have anything public to show at the moment. Maybe I’ll blog about the approach some day.

comment 11mo ago · link · parent

Yes, though often I’ll omit the tag, and just target [slot=“hero-blurb”]. Depends on the situation.

comment 11mo ago · link · parent

I've been doing this for about three or four years. Clever idea, tricky in practice. I don't think I'd recommend this approach broadly. But it works for me.

It's definitely possible to take it too far. When most tags in your HTML are custom elements, it creates new readability problems. You can't immediately guess what's inline, what's block, etc. And it's just a lot of overhead for new people to learn.

I've arrived at a more balanced approach. It goes something like this:

If there's a native tag, like <header> or <article>, always use that first.

If it's a component-like thing, like an <x-card> or <x-hero>, then go ahead and use the custom tag. Even if it's CSS only, without JS.

If the component-like thing has sub-components, declare the pieces using slot attributes. There will be a great temptation to use additional custom tags for this, like <x-hero-blurb> inside <x-hero>. In my experience, a <div slot="hero-blurb"> is a lot more readable. The nice thing about this pattern is that you can put slot attributes on any tag, custom or otherwise. And yes, I abuse the slot attribute even when I'm only using CSS, without JS.

Why bother with all of this? I like to limit my classes to alteration, customization. When I see a <div slot="card-content" class="extra-padding-for-xyz">, it's easy to see where it belongs and what makes it unique.

Some of you will likely barf. I accept it. But this has worked well for me.

comment 1y ago · link · parent

AI's superpower is doing mediocre work at high speed. That's okay. Great, even. There's lots of mediocre work to do. And mediocre still clears below average.

But! There's still room for expertise. And this is where I disagree about swimming with the tide. There will be those who are uninterested in using the AI. They will struggle. They will hone their craft. They will have muscle memory for the tasks everyone else forgot how to do. And they will be able to perform work that the AI users cannot.

The future needs both types.

comment 1y ago · link · parent

If the gamification is fully disclosed, I don't see the problem. People should be able to agree to game themselves, if it helps them complete a task they otherwise wouldn't finish.

But consent is key. Maybe we need regulation that compels companies to disclose these manipulative techniques in digital services. Give people the chance to opt in or out.

comment 1y ago · link · parent

Server-side JS is fine, and actually very nice in some contexts. The language and runtime(s) have come a long way.

But anyone who tries it without really understanding JS is eventually going to have a bad time. It’s important to know how to work with the event loop, how to properly use promises, etc. Server-side JS is a lot more unforgiving than front-end JS when it comes to these concepts.

comment 1y ago · link · parent

I believe you’ve just described the RISC-V project, though I could be mistaken.

comment 2y ago · link · parent

"Innovation" in this context does not mean cutting-edge technology. It just means changing processes to deliver better results. The tech is often the easy part, and there's plenty of room for boring software.

The hard part is navigating the bureaucracy and building consensus toward a change. This management-craft is where the clever thinking and emergent solutions are found and deployed.

comment 2y ago · link · parent

The Bun libraries made it very easy to create my own static site generator. Not a huge lift, I know, but it’s been a delight to work with.

comment 3y ago · link · parent

I would probably spend an hour or two just writing something like that. On the surface, I'd agree.

With that said, in my experience, many stand-up formats devolve into some version of "the two most talkative people have a conversation for 30 minutes while everyone else listens". I'd probably get more value out of doing a write-up than sitting through a meeting like that.

It really depends on the health of the stand-ups on the team.

comment 3y ago · link · parent

I would recommend community college to smart kids without direction. It’s a great place to explore subjects without going into debt.

comment 3y ago · link · parent

It's really clear to me. (And I did account for the subsequent README commits since your comment). But that's probably because I already know Web Components well. I'm in the market.

In the following line...

> Hyphen - A custom element base class for great developer ergonomics.

...I would recommend adding a link on "custom element" that points to a definition somewhere. This might make it easier for skimmers to parse the meaning of this opening line.

comment 3y ago · link · parent

If you're using browser APIs to do lean local interactions, then good for you. Gold star. Fully approved. That's not what I've been seeing recently from the people around me who are most excited about this stuff.

And you're right about how connectivity changes over time. But how many people are on their bikes when applying for unemployment insurance? I just don't think most business apps benefit from this level of offline support. There are of course use cases for this! But it's not the common case.

comment 3y ago · link · parent

Not much of an assumption. Many local-first solutions work from a big wad of JS. I've seen use of WASM to include things like SQLite. It's not pretty.

My point is that if you're in danger of losing your internet connection, you're not going to be able to reliably get that initial JS bundle anyway.

comment 3y ago · link · parent

Ah yes, let's ask people on spotty connections to download a (likely) megabytes-large JavaScript bundle. What could go wrong?

Most of my users have old phones and bad connections. I've tried this JS-heavy bundle-first approach. It doesn't work.

The solution is way simpler than local-first. Just shrink every page and interaction. Fewer requests, little JavaScript (if any at all), low latency. Use static pages when possible. Even the oldest phones on the most remote connections can usually deal with a sub-50kb page all-in. It feels like people forget how simple web interactions can be.

I'm sure local-first can be great for highly interactive tools like Figma. But the grandparent is right. Most sites don't need anything close to that level of complexity.

comment 3y ago · link · parent

My team manages several static sites. They're each hundreds/thousands of pages in size. Here's why we like faster builds.

* Fast builds are way more pleasant during development. "Incremental" per-article builds help, but not in all scenarios. Nothing kills my motivation faster than having to wait 30 seconds to preview a fix.

* Fast builds help us avoid jams in our automated push-live systems. Sometimes we have many editors updating pages during a big event. You could consider many different trade-offs when deciding how to manage these queues. But a fast build time erases a lot of those conversations.

We use 11ty on most of our sites. We've found 11ty itself to be fairly performant. The slugs tend to be everything related to processing assets: JavaScript bundles, Sass builds, image manipulation, etc. By streamlining those activities, we can usually get a site build down to just a few seconds.

That said, "instant build" is the dream that animates the best conversations on our team, and we've started building our own static site generator. Our SSG can run both on the server and in the browser. We want our editors in our CMS to be able to get instant, true previews of the page they're editing. Then we want to be able to push single-article builds live, instead of always rebuilding the whole site. It's early days yet. Maybe you'll see it on a "Show HN" some day.

comment 3y ago · link · parent

> First, the idea that one of web components' strengths is bypassing serverside rendering is a bit misleading. SSR has been foundational to reducing time to first meaningful paint, ensuring accessibility, and improving seo. to argue that bypassing it is an advantage seems antithetical to best practices, even when using client-side tech like web components.

This comment deserves some clarity.

Web components should not bypass server-side rendering. However, that server-side rendering should not come from the web components themselves. Rather, the "SSR" in this case should be the job of whatever generates the page HTML.

The page HTML should include default "slotted" content (inside the custom element's tag) to be picked up by the web component when the page loads. That's the best way to do progressive enhancement in web component land. Whenever I reach a point when I think, "Gee, I wish I could SSR this web component," I take it as a bad smell, like I'm probably not taking advantage of web component features.

Put another way, I wouldn't want to SSR a web component for the same reason I wouldn't want to SSR a <p> tag. The latter makes no sense, right? Web components are custom elements, and they should be treated like elements, and designed like elements.

> Web components certainly have their place and, used judiciously, can certainly add value. It's just essential to approach them with a nuanced understanding and not as a silver bullet.

Fully agreed with this, it should be repeated over and over. Web components can be part of a balanced diet but they can't be the whole meal.

comment 3y ago · link · parent

Sometimes, but not enough. Everyone tries to write web components like it's "Open Standards React Lite". And the results are as poor as expected.

Web components are superficially similar to React/Angular/Vue, but very different in practice. Different strengths. Different use cases. Different opportunities. Like the post says, the web components community has been terrible at articulating and marketing these differences.

comment 3y ago · link · parent

Fully agreed.

comment 3y ago · link · parent

> They require javascript and have no fallback or graceful degradation in functionality at all

This is false. Use <template> and <slot>. First-class progressive enhancement.

comment 3y ago · link · parent

When you see this, it’s a sign that someone built their web components with React/Angular/Vue on the brain.

The tech is fine. You can achieve amazing progressive enhancement with web components by understanding and effectively using <template> and <slot>. However, many web component developers never learn this.

The problem you’re describing is a training/marketing issue, as discussed in the post.

comment 3y ago · link · parent

It feels like Xbox also serves as a reference controller for PC. Viewed from that angle, basic and conservative makes sense.

I still really like the XBox controllers for their ergonomics. They’ve been refining that same basic design for a long time.

comment 3y ago · link · parent

He published a book called “Insane Clown President” just a few years ago. It seems you don’t understand the first thing about Taibbi or his work.

comment 3y ago · link · parent

The only metric that matters for most typists is familiarity. That's why Qwerty has dominated for over 150 years.

But I'm pretty sure my typing needs as a programmer in 2023 are different from the typing needs of a telegraph transcriber in 1879.

I've been a Dvorak typist for 15 years. I can tell you, without reservation, that Dvorak is a better fit for my work. Dvorak is smooth and comfortable. I can stay in the zone for longer stretches of time.

Nonetheless, Qwerty's killer feature is that it's familiar. Historically familiar. That's enough to keep Qwerty on top.

comment 3y ago · link · parent

Same exact thing here. If it's split and tented, I type Dvorak. If it's flat, I type Qwerty. Full speed, no thought.

comment 3y ago · link · parent

Even with a Japanese wife, Japanese fluency, fondness for rural Japan, a career in remote work, and a flair for home renovation, I still have no interest in buying one of these houses. It’s a huge job to fix up most of these homes.
12345
11