News for hackers. Stuff that matters.
Re:React I love you, but you're bringing me down by gherkinnn on Tuesday September 20, 2022 @01:50PM (#32915267)
Vue 1.x was great, v2 lost its way, and Vue 3 with the composition API looks fantastic on paper. (I haven’t used it in any meaningful way)

I’m even more impressed with the extended Vue ecosystem like Vite, Vitest.

Re:React I love you, but you're bringing me down by KronisLV on Tuesday September 20, 2022 @03:34PM (#32916677)
> Vue 3 with the composition API looks fantastic on paper. (I haven’t used it in any meaningful way)

Recently worked on migrating a large codebase over from a legacy solution to Vue 3 with composition API, it was a pretty enjoyable experience, especially with Pinia!

Though I'd say that the problem was that most component libraries/frameworks out there actually don't support Vue 3 well enough. Last I checked, only the following were viable with Vue 3:

  - Ant Design
  - Element Plus
  - PrimeVue (went with this, also has icons and a layout solution; also alternatives available for React and Angular)
Most of the other ones considered weren't quite there yet:

  - Vuetify
  - Quasar
  - BootstrapVue
  - Vue Material
  - Buefy
  - View UI
  - Vuikit
  - Chakra UI
I mean, is it really so hard to get a bunch of pre-built components for Vue 3 with Bootstrap, or Bulma? It feels a bit like the Python 2 to Python 3 migration in some respects.
Re:React I love you, but you're bringing me down by Hawxy on Tuesday September 20, 2022 @07:51PM (#32919315)
> Most of the other ones considered weren't quite there yet

From what I recall, quasar managed to update very quickly.

Vuetify is currently in Beta for Vue 3 as they went with a greenfield rewrite to deal with tech debt. I rolled it out to a production site recently and it works well.

BootstrapVue completely dropped the ball, despite the corporate sponsorships the original maintainers went missing for a whole year & bailed. It got new maintainers at the start of the year, but they've been delayed by current geopolitical events.

Re:React I love you, but you're bringing me down by KronisLV on Wednesday September 21, 2022 @02:15AM (#32921381)
> From what I recall, quasar managed to update very quickly.

This is true, at least there now is Vue 3 support, just checked: https://quasar.dev/

Though I can't edit the original post anymore. Oh well, thanks for clearing that up.

Re:React I love you, but you're bringing me down by mmis1000 on Tuesday September 20, 2022 @02:09PM (#32915612)
I used it in a few project. And it reduces the code by a lot.

For example. To make a mutex to prevent duplicate submit of form. You use need to declare a instance field and wraps the code that do the submit. That alone is 3 lines of code but don't even include error handling.

But now I sealed it into a one line hook

    const wrap = useMutex()
    const submit = wrap(async () = { … })
And then the submit can't run in parallel now.