Ethan Wolfe's Avatar

Ethan Wolfe

@vipero07.bsky.social

38 Followers  |  87 Following  |  43 Posts  |  Joined: 13.09.2023  |  2.2423

Latest posts by vipero07.bsky.social on Bluesky

But why

23.05.2025 23:06 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

No! I recently wrote out a very robust action leveraging runes and I'm very attached to it! J/K, looking forward to migrating it to this.

14.01.2025 02:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It reminds me of one of my past jobs where the manager wanted to put the Julian date in the app version and build number.

I'd have just arbitrarily said "this is v1" if it was some higher ups saying no one understands this is production ready. This feels like a protest 🀣.

14.01.2025 01:11 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

All that to say, in my view, even though Unocss has introduced changes that broke my code, I don't think it's had many that broke contract and ironically was correctly at 0 (or maybe 1). As all I've really seen is new features, or fixes. This new version scheme seems off, can't put my finger on it.

14.01.2025 01:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Finally the last number {Fix} changes when a fix happens (string to number that was supposed to be a number in the first place). Fix changes can be grouped with a minor change and minor and / or fix changes can be grouped with a major.

14.01.2025 01:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I view semver as the first number {Major} changes when something the user currently has access to changes in contract in some breaking way, like a string to a number. The second number {Minor} is when a new feature is added, like a new endpoint, or property.

14.01.2025 01:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

So epoch aside, I don't see a difference (not beyond the appearance of "prod ready").
Personally though, the epoch concept seems unnecessary. As defined in his blog, this forces an epoch to roll over every 100 major versions (if it isn't done by someone's well defined whim).

14.01.2025 01:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

That being said, I find this versioning change kind of funny. To me, and probably most devs, I've always seen the uno major version as the version after the 0, meaning if that number changes I need to make sure my apps still appear correctly.

14.01.2025 01:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Epoch Semantic Versioning Proposal for an extended Semantic Versioning called Epoch SemVer to provide more granular versioning information to users.

Reading @antfu.me antfu.me/posts/epoch-...

I generally enjoy most Anthony Fu open source projects. I have also opted to use Unocss instead of tailwind (I find tailwind still playing catch-up to Unocss years ago).

14.01.2025 01:11 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

or individual object states inside of a collection like when you want to trigger an effect when a single item changes. Say when you want to post back the single changed item, instead of the full list, on every change.

05.01.2025 17:34 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Ya I've had similar issues I think depending on your use case you either want a collection state (when you want to just send the whole collection up to an endpoint on form submission for example)

05.01.2025 17:34 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

While I understand that JSX is just a DSL, it is no different from "a template language" which is a DSL for templating. It, like svelte's templates, will not run inside a browser. Plus svelte:element, in this case, allows to opt out of the {if} template.

05.01.2025 03:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Svelte has been compiled since 3... their new signals from 5 wouldn't cause a reevaluation, and even since 3 any reevaluation stops at the component with changes (as in the parent changing wouldn't necessarily affect the children).

05.01.2025 03:42 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm not sure the dom not updating when there is no changes affects much in this regard. The problem is react is still reevaluating every component, not that it is or isn't changing the dom. But as I said, similarly bad if components could be written for svelte, and they too wouldn't affect the dom.

05.01.2025 03:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The same can be said for svelte's if else template syntax, as svelte:element opens up the litany of JS options just the same.

05.01.2025 03:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Where svelte similarly mentions two methods, the in markup if else method, and the svelte:element method. Opening up every other way to achieve the same result in js that react has.

05.01.2025 03:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Quick Start – React The library for web and native user interfaces

The same is true for any framework, svelte included... svelte's if's are just a way to embed js if logic into the markup. However, the react docs show two methods for if / else. So when I say the standard, I mean it is what the docs, if nothing else, suggest. react.dev/learn#condit...

05.01.2025 03:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You can do the same in svelte in this case too, I believe the point was to show an if with components. Heck svelte could have a js ternary for text {condition ? "Content" : otherCondition ? "Other Content": "Fallback Content"}

05.01.2025 03:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Learning svelte set is the same as learning a JavaScript set, but I think the dilemma you are running into has to do with how complex handing state mutation and reactivity is.

04.01.2025 23:48 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
<svelte:element> β€’ Svelte Tutorial

Svelte element is intended for use to not have a bunch of if statements for example and would be easy to implement with a dictionary. svelte.dev/tutorial/sve...

04.01.2025 22:45 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The if component is worse. Every if has to be evaluated and any library can do it too. The switch however is basically the same thing. The react standard is to use a ternary and it is inarguably less readable.

A better way IMHO is to have a dictionary.

04.01.2025 22:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Preview
Images β€’ Docs β€’ Svelte Images β€’ Svelte documentation

Good advice. If using sveltekit, enhanced-img does this (and more) for you.

svelte.dev/docs/kit/ima...

04.01.2025 22:27 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Honestly I think you could just get away with $state([]) instead of a SvelteSet. Set is useful if you were going to have duplicates but that should be avoidable by just having a group with no duplicates.

01.01.2025 21:03 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

SvelteSet is a signal just like anything made with $state. It's just that Set is a complex class that requires a more complex integration than a basic js object. It's curious that it doesn't seem to be working for you... πŸ€”

01.01.2025 20:46 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Worth it just to learn and work with something different then. I do something similar with just starting new personal projects every couple of years. I'd probably pick astro just to play in it next time 😁

01.01.2025 20:38 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

That's probably what I'd do 🀣

01.01.2025 20:34 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Precisely. But it comes down to the developer's comfort level IMHO.

01.01.2025 01:38 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

At my job we use drizzle which has a decent tool for exploration. We have data science people who change the DB directly and use the introspection to update the codebase, and developers who use code first to update the database. It even outputs decent migration scripts for prod deployments.

01.01.2025 01:37 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Story(book) of my life... At least the recent parts.

01.01.2025 01:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Advent of Svelte Twenty-four days, twenty-four features

Why migrate from sveltekit to astro? I'm not trying to be a contrarian, sveltekit with the static adapter I feel is about equivalent. The new inline bundle strategy svelte.dev/blog/advent-... seems to me to cover the previous missing parts even.

Seriously wondering what you gain from migration.

01.01.2025 01:31 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@vipero07 is following 20 prominent accounts