I am a front-end developer who is FED up about front-end development. If you write front-end, this isn't about you personally. It's about how your choices make me angry. Also this is about how my choices have made me angry. Also this is mostly just about choices, the technologies are incidental. Not...
Link Actions
Too good NOT to share.
My brothers and sisters in Christ I want you to know that I care about your souls enough to share these truths with you:
I think basic or even complex stuff is fine in vanilla js.
The problems show up as you scale the team and code base. You can do a large project in vanilla js but you're going to have to solve a lot of the same problems frameworks/libraries have already solved. Maybe it's worth it, maybe it's not.
Most Frontends are not super interactive google tables like applications and never will be and frameworks won't magically make your code maintainable or enable you to work with 50 other guys on that page that interacts with a simple CRUD-API, yet people choose a complex framework meant for huge projects and pile even more dependencies on to of it for that kind of stuff. it's like using a fleet of 18 wheel trucks for grocery shopping, when a basket and a bicycle are really all you'll need for that.
i'd guess most websites would be fine and feel "modern" with html, css and a small library for ajax stuff, because doing that by hand is repetetive and error prone.
Yea, I'm unclear on how you can take web components and still have widespread browser support (not knowing enough about their ins and outs).
Plain template elements are widely supported and have been for ~10 years (which ideologically matters to me along the same lines as the top post's article) ... perhaps a little bit of hacking together can get you close with just that?
It's a little paranoid of me, but I like the idea that a basic web app I make can be thrown onto any old out of date machine, where ~2015 or younger seems about right for me ATM.
You mean the Html template Element? I’ve never really got that to work, but I also never seriously tried.
Yea. From memory, it's just an unrendered chunk of HTML that you can select and clone with a bit of JS. I always figured there'd be a pattern that isn't too much of a cludge and gets you some useful amount of the way to components for basic "vanilla-js" pages, just never gave it a shot either.