Every dependency you add is a supply chain attack waiting to happen
6 months ago by codeinabox to c/programming
Implementing reactivity is a non-trivial task. With Alpine, you get Vue's without the rest of Vue.
It's offers a syntax similar to a no-build VUE. This gives you a more standard, modern way of doing things that a lot of people already know how to do. And it does it without generating many thousands of files and dependencies just to create a "hello world" page. Most anyone that could figure out VUE code should be able to look at AlpineJS code and figure out what is going on. I could very easily use vanilla JavaScript to do everything. Good luck on you figuring any of it out in a timely manner if you inherited any of the code.
I'm mostly doing database CRUD with it. I'm really impressed with how easy it is to make a somewhat complex form with a minimal amount of (mostly clean) code.
That said, I do not really like the inline coding that they push in all the documentation. I much prefer separating the code using Alpine data(). It's much easier to debug.
@programming.dev
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
go to feed...
@programming.dev
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
go to feed...
No build with AlpineJs is now the future. I've been saying for many years that creating a "hello world" page that generates tens or even hundreds of thousands of files is kind of nuts. Every one of those files could be a security issue.
save