Advertisement ยท 728 ร— 90

Posts by Aaron Pettengill

I have a bad habit of using novel combinations of tools on every side project. And then 80% of the time spent on the project is just fighting to make those things play nicely together.

5 months ago 0 0 0 0

Silksong coming out less than a week after the next Path of Exile 2 update puts me in a tough spot haha.

7 months ago 0 0 0 0

I'm falling down the "before I can start this project, I need to make this other thing" rabbit hole and now I'm seriously considering writing my own CRDT library.

Send help

8 months ago 3 0 0 0

I like my auto-complete with superpowers because it's still basically what I want to write, just faster. But not going anywhere near the full-on hands-off just-say-what-you-want-and-it-writes-the-code-for-you features.

9 months ago 2 0 0 0

Gah! I use that thing all the time T.T

9 months ago 0 0 0 0

This is always my first thought when library/framework authors say they want to be model-first, model-driven, etc. Optimizing for what LLMs spit out seems like a great way to stagnate.

10 months ago 2 0 0 0

The reason I've heard is it makes it hard to use multiple of these hooks on the same element.

But with a mergeRefs helper, that justification doesn't hold water for me.

11 months ago 2 0 0 0

I've lost count of the number of times I've said "have you tried doing what it says in the error?" and it was the right answer haha.

11 months ago 1 0 0 0

I like the direction! I feel like this will let me make the zod-form-data API feel a lot more zod-native.

1 year ago 3 0 0 0
Advertisement

I think in a perfect world enum values would have their own semantics. Something like Ocaml's polymorphic variants would feel javascripty, IMO.

1 year ago 3 0 0 0

That's a good point about serialization. Defaulting to symbols would help, I think. As long a we won't default to numbers starting from 0 haha.

1 year ago 2 0 1 0

IMO, if I was writing the v1 for this proposal I'd probably opt to start auto-initialized only and use Symbols as the default initializer.

1 year ago 3 0 1 0

The fact that `MyEnum.foo` just returns the value of the initializer has always made it feel like unnecessary sugar. And you can always just skip the enum and use the initializer directly if you want. My dream enum would be nominally typed or at least return some sort of special enum value.

1 year ago 3 0 1 0

The semantics of TS enums is part of why I don't like them, so it's kind of annoying that the proposal just wants to replicate that as closely as possible. ๐Ÿ˜ฎโ€๐Ÿ’จ

At least they're not introducing auto-initializing as numbers right now so that's better.

1 year ago 2 0 1 0

Is there anything like shadcn/ui but using Ariakit?

1 year ago 2 0 1 0

Tried SST on a project recently and now I'm not sure there's a reason to use anything else haha.

1 year ago 0 0 0 0

Valibot looks pretty great.

1 year ago 0 0 0 0
Advertisement

If StandardSchema sees enough adoption, I'm totally gonna write my own validation library.

1 year ago 0 0 0 0

I guess that last part is obvious actually. Shows how little time I've spent with server components ๐Ÿ˜ญ

1 year ago 0 0 0 0

I haven't tried the React compiler so that's totally possible. But since the promise has a consistent identity on every render this seems like it should be okay.

Also worth noting that this is in a SPA so it's client-side code.

1 year ago 0 0 1 0
Javascript code reading:

const someModule = import("some-module");

const Component = () => {
  const { useLazyHook } = use(someModule);
  useLazyHook();
}

Javascript code reading: const someModule = import("some-module"); const Component = () => { const { useLazyHook } = use(someModule); useLazyHook(); }

I just realized you can lazy load hooks like this.

1 year ago 3 0 1 0
White cat perched above the lamp so he looks menacing.

White cat perched above the lamp so he looks menacing.

I'm tempted to make this my pfp.

1 year ago 0 0 0 0

I've recently started using `useSuspenseQuery` and managing loading states feels way nicer to me.

And even without prefetching, I think it's more natural to avoid request waterfalls.

1 year ago 2 0 0 0

That just feels so wrong haha. It's not subtle but it isn't flashy either. Is just ๐Ÿคข

1 year ago 1 0 0 0

Oh and

Device: Galaxy S21 ultra
Browser: chrome opened within Bsky

1 year ago 1 0 1 0
Advertisement

Goose: 90
Toucan: 150
Puffin: 20

Also, the app froze when I opened puffin the first time because it defaulted to what I set for Toucan lol.

1 year ago 1 0 1 0

I usually go with Button and ButtonLink components in the same file and the styles are just a top-level variable in that file.

1 year ago 1 0 0 0
Screenshot of GitHub wrapped showing 24,000 commits.

Screenshot of GitHub wrapped showing 24,000 commits.

Mine got a little over-inflated by the automation in my GH profile repo lol.

git-wrapped.com/profiles/air...

1 year ago 0 0 0 0

Ooh, neat! Maybe now every form library won't need to write it's own validation adapters.

1 year ago 3 0 1 0
Preview
spongebob says i don 't need it in a cartoon Alt: Spongebob saying "I don't need it"

How can I write tests today when my monk is just there waiting for me to log in again.

1 year ago 1 0 0 0