DEV Community

Discussion on: Vue over React just for the syntaxis? :(

Collapse
 
cyberhck profile image
Nishchal Gautam

If you're writing react and view layer isn't separate from business layer, you're doing it wrong.

You can have preference for sure, but separation of concern is wrong point, because you do it in both, just write correct react man.

I see very often people write shitty code to write quickly, but never they think that we read more code than we write, we should optimize for reading than writing, write code slower, it's okay, just make sure it's maintainable

Collapse
 
pedrovelborr profile image
Pedro Velazquez

No no. It's not about clean code or layers. It's about some people who argue that /.vue$/ files are more pleasent to read and write that react. It's like you like tabs with 4 spaces and if your new editos has tabs with 2 spaces, then you delete it :(

Collapse
 
cyberhck profile image
Nishchal Gautam

Of course, for some people it's easier to read vue files, no doubt about it. And I'm not arguing over that.

What I meant was if someone wrote a mess of a component, that's not a good reason to steer away from React, you can certainly opt for vue because you like their syntaxes.

But code quality is good in both frameworks, I wish people stop writing shitty code in the first place, people try to finish a feature fast, that's just wrong, optimize for read, maintain and modify, don't optimize for writing a feature.