DEV Community

Discussion on: Why would you want to learn VueJS now?

Collapse
adamcoster profile image
Adam Coster

Vue is great, and Vue3 has made it much better yet. While in general I agree that the docs and ecosystem are great, the Vue2/Vue3 split has made that less true.

I recently upgraded a big Vue2 project to Vue3. It was less painful than I expected, but I found it difficult to figure out which version of Vue any given 3rd party library or even the Vue docs are referring to.

Collapse
frontendengineer profile image
Let's Code Author • Edited on

glad to hear your experience on the upgrade. I am interested on how did you approach the upgrade - manually or using a cli or a migration docs/guide?

Did you also include typescript? We are currently using VueJS version 2 in the company.

Collapse
adamcoster profile image
Adam Coster

I used the CLI and followed up with a lot of manual fixes. I did switch to Typescript as part of the process.

Thread Thread
frontendengineer profile image
Let's Code Author

i need to take a look at typescript. Companies are investing into it now and getting so much attention because of the advantage it brings.

Thread Thread
adamcoster profile image
Adam Coster

After making the switch I'll never go back. I started to slowly adopt it early last year, and once I got over the initial learning hurdles it quickly became the only way I wanted to code!

Thread Thread
frontendengineer profile image
Let's Code Author

thanks for sharing. I have typescript docs open at the moment and I would dive into it.

I used to think that TS is just an additional overhead, I didn't bother learning as JS is meant to be loosely typed. It is an eye-opener to see the community slowly adapting to it. Hope that TS will just be embedded on JS itself.

Thread Thread
adamcoster profile image
Adam Coster

Typescript is great because it doesn't limit what you can do, it just documents what you did do, or plan to do, so that you can catch errors from accidentally not doing those things. You can adjust type definitions easily and on the fly.

At the beginning of learning it's hard to use Typescript to express your intent, so it may feel constraining at first. But it's worth sticking to it!

Thread Thread
frontendengineer profile image
Let's Code Author

im sold! thanks for the valuable input. i currently know the basics and watched tutorials last night. will get my hands dirty this weekend. Thanks Adam.

Thread Thread
adamcoster profile image
Adam Coster

Good luck! Definitely best to start with small projects until you feel confident with it. The official docs are very good. I've found that the vast majority of my frustrations stem from configuration issues, which can be tricky to get right.