▲ 168 ▼ Every dependency you add is a supply chain attack waiting to happen (benhoyt.com) submitted 3 months ago by codeinabox@programming.dev to c/programming@programming.dev 30 comments fedilink hide all child comments
[–] transporter_ii@programming.dev 9 points 3 months ago (1 child) 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. permalink fedilink source hideshow 2 child comments replies: [–] Kissaki@programming.dev 6 points 3 months ago (2 children) What's the advantage of AlpineJs vs baseline web technologies? Scrolling through the simple intro examples, I would have implemented those with standard JS and DOM APIs just fine. permalink fedilink source parent hideshow 4 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 4 points 3 months ago (2 children) Implementing reactivity is a non-trivial task. With Alpine, you get Vue's without the rest of Vue. permalink fedilink source parent hideshow 4 child comments replies: [–] MonkderVierte@lemmy.zip 6 points 3 months ago* (last edited 3 months ago) (1 child) Yeah ok. To be fair, i have 3rd-party frames and js blocked on mobile. But cmon, not even the close button works without 3rd-party. I'm rusted, but even i could implement that one properly in html and css only in half a hour. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 1 point 3 months ago If you're judging the website of a JS library by how it performs without JS, I'm not sure I can help you. Without third party Can you share the sources you blocked? permalink fedilink source parent [–] aegg@europe.pub 3 points 3 months ago (1 child) WebComponents is a standard api and actually very simple. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 2 points 3 months ago I've written my fair share! Unfortunately, clients ask for dumb shit all the time and Alpine is fast and cheap. permalink fedilink source parent [–] transporter_ii@programming.dev 2 points 3 months ago 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. permalink fedilink source parent
[–] Kissaki@programming.dev 6 points 3 months ago (2 children) What's the advantage of AlpineJs vs baseline web technologies? Scrolling through the simple intro examples, I would have implemented those with standard JS and DOM APIs just fine. permalink fedilink source parent hideshow 4 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 4 points 3 months ago (2 children) Implementing reactivity is a non-trivial task. With Alpine, you get Vue's without the rest of Vue. permalink fedilink source parent hideshow 4 child comments replies: [–] MonkderVierte@lemmy.zip 6 points 3 months ago* (last edited 3 months ago) (1 child) Yeah ok. To be fair, i have 3rd-party frames and js blocked on mobile. But cmon, not even the close button works without 3rd-party. I'm rusted, but even i could implement that one properly in html and css only in half a hour. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 1 point 3 months ago If you're judging the website of a JS library by how it performs without JS, I'm not sure I can help you. Without third party Can you share the sources you blocked? permalink fedilink source parent [–] aegg@europe.pub 3 points 3 months ago (1 child) WebComponents is a standard api and actually very simple. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 2 points 3 months ago I've written my fair share! Unfortunately, clients ask for dumb shit all the time and Alpine is fast and cheap. permalink fedilink source parent [–] transporter_ii@programming.dev 2 points 3 months ago 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. permalink fedilink source parent
[–] shnizmuffin@lemmy.inbutts.lol 4 points 3 months ago (2 children) Implementing reactivity is a non-trivial task. With Alpine, you get Vue's without the rest of Vue. permalink fedilink source parent hideshow 4 child comments replies: [–] MonkderVierte@lemmy.zip 6 points 3 months ago* (last edited 3 months ago) (1 child) Yeah ok. To be fair, i have 3rd-party frames and js blocked on mobile. But cmon, not even the close button works without 3rd-party. I'm rusted, but even i could implement that one properly in html and css only in half a hour. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 1 point 3 months ago If you're judging the website of a JS library by how it performs without JS, I'm not sure I can help you. Without third party Can you share the sources you blocked? permalink fedilink source parent [–] aegg@europe.pub 3 points 3 months ago (1 child) WebComponents is a standard api and actually very simple. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 2 points 3 months ago I've written my fair share! Unfortunately, clients ask for dumb shit all the time and Alpine is fast and cheap. permalink fedilink source parent
[–] MonkderVierte@lemmy.zip 6 points 3 months ago* (last edited 3 months ago) (1 child) Yeah ok. To be fair, i have 3rd-party frames and js blocked on mobile. But cmon, not even the close button works without 3rd-party. I'm rusted, but even i could implement that one properly in html and css only in half a hour. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 1 point 3 months ago If you're judging the website of a JS library by how it performs without JS, I'm not sure I can help you. Without third party Can you share the sources you blocked? permalink fedilink source parent
[–] shnizmuffin@lemmy.inbutts.lol 1 point 3 months ago If you're judging the website of a JS library by how it performs without JS, I'm not sure I can help you. Without third party Can you share the sources you blocked? permalink fedilink source parent
[–] aegg@europe.pub 3 points 3 months ago (1 child) WebComponents is a standard api and actually very simple. permalink fedilink source parent hideshow 2 child comments replies: [–] shnizmuffin@lemmy.inbutts.lol 2 points 3 months ago I've written my fair share! Unfortunately, clients ask for dumb shit all the time and Alpine is fast and cheap. permalink fedilink source parent
[–] shnizmuffin@lemmy.inbutts.lol 2 points 3 months ago I've written my fair share! Unfortunately, clients ask for dumb shit all the time and Alpine is fast and cheap. permalink fedilink source parent
[–] transporter_ii@programming.dev 2 points 3 months ago 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. permalink fedilink source parent