@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
@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
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
@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 https://t.co/By2NvT5Dk4
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!
@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: https://t.co/cQSgtShHSY
@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.
@vlucas@housecor 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.
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
@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
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.
@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