
Backend Engineer 1 @OnlineRewards. Expert chess sacrificer ♛♟️& master at ruining my own sleep schedule. Connect with me at https://teapawt.net/t.co/2Se3RvzYrB
Cincinnati
Joined August 2019
- Tweets1.4K
- Following322
- Followers136
- Likes2K
Replying to @argyleink
Small UX improvements like this make me so happy. Hope @firefox gets this too
1
236
Replying to @brianmmdev
I think it depends on your start state energy. If low then we start small by knocking out small tasks to create momentum. If high, then tackle the largest task first so your mind is at ease
1
1
20
Replying to @bhuynhdev @sveltejs
I feel silly only realizing this about Svelte today.
Bonus discovery: expression interpolation is the only way to do this, whereas $derived can't
1
53
My new noob @sveltejs discovery: You might NOT need $derived!
For simple expressions, put it straight into your markup. They're still reactive!
$derived is useful for reactive **variable** w/ a complex expression and/or to be re-used many times. But otherwise, I prefer simple
2
146
Replying to @bhuynhdev @DrizzleORM
Or further refine for more sophisticated schemas w/ drizzle-seed's included generators, or even your own implementation
drizzle-seed has:
- valuesFromArray
- int
- firstName/lastName/fullName
- phoneNumber
- country
- jobTitle
- companyName
and more at orm.drizzle.team/docs/seed-f…
32
Replying to @bhuynhdev @DrizzleORM
drizzle-seed comes w/ some sane default generators based on your column type and names. Examples:
- col type includes "date" → GenerateDate
- string col with "name" in name → GenerateFirstName
- "email" → GenerateEmail
More at: github.com/drizzle-team/driz…
1
32
More reason to love @DrizzleORM for me:🆕 "drizzle-seed" just dropped last week 🌱
- Just pass in your schema
- Intelligent default generators
- Ability to further refine generation
- Seed relationships too
- Utility to reset whole table
drizzle-seed now on Drizzle 0.36.4!
1
67
Replying to @D_raverezld @housecor
That's correct. These Remix loaders are merging into React Router so that RR users can also enjoy SSR data loading benefits if want to.
React Router 7 is now basically the new Remix.
1
38
Replying to @housecor
I guess we're in the opposite. A year ago, I was surprised that RR `loader` means client-side loading when I worked w/ a RR SPA after learning Remix.
This naming change would probably make more sense if you're from Remix which uses `loader` for server loading and `clientLoader`
1
1
71
IME with functions you have more flexibility. You decide if you want to split or not (and if you want to, it's not hard) as opposed to being forced to.
1
1
52
Replying to @bhuynhdev @joyofcodedev
Unsure if this's recommended or not - I can't find anything about this in Svelte doc (maybe I don't know the right keyword) - but it feels so elegant!
This probably equals setting up some "$effect", but coming from React, I was taught that I should minimize effect usage
1
78
The "writable derived" is an incredible Svelte trick I just learned from @joyofcodedev
🚩 Problem: 2-way sync btw two states, but can't use "$derived" because it's 1-way readonly
→ ✅Use an object with get/set
Here, typing activate checking, and unchecking also reset email
TIL: A <button> element inside a <label> element will not work, as the button captures the click for itself and doesn't pass it to the label at all.
Greedy buttons.
62
Replying to @devagrawal09
I think I read on Reddit the other day about someone having thousands of users on the Free tier of their side project, so they quit job and start trying to monetize, then the number of users just drop 10 times
1
1
58




