News for hackers. Stuff that matters.
Re:This website has 81% battery power remaining by hattmall on Sunday December 12, 2021 @02:32PM (#29532781)
I agree with this so so much.

The problem is too much reliances on frameworks and add on libraries.

Developers will import an entire framework that for the benefit of a single feature. It's mind blowing to look at the amount of js includes for seemingly simple sites.

Stackoverflow answers that direct you to import a library or framework should be banned in most cases.

I will often have to scroll past several answers that say to import a library before finding a simple and functional answer that uses only a few lines of code down near the bottom. Which in my eyes is the real answer. I often wonder if there's a behind the scenes effort on SO to promote certain includes.

The entire ecosystem of some languages / implementations relies on this far too heavily.

We are seeing some of the consequences other than just bloated systems from this style of coding with malicious node packages.

Re:This website has 81% battery power remaining by throwaway11602 on Sunday December 12, 2021 @03:12PM (#29533137)
I am guilty of this, and I feel bad for it. I am not a front end developer, but I have built a few web sites for various projects here and there. I certainly don't NEED to use a front-end framework, but I don't want have to spend a ton of time crafting CSS rules and figuing out how many divs to nest. To get something done quickly, my choices pretty much boil down to plain, unstyled, pages, or a full blown framework like Vuetify. So far, I haven't found anything in between. I would love to find a CSS library that I can just import and be able to create simple, nicely styled pages, e.g. that look Material-esque, without jQuery, node, npm, gulp, grunt, sass, and all that jazz.
Re:This website has 81% battery power remaining by mro_name on Sunday December 12, 2021 @03:46PM (#29533440)
do you know the matrix movie quote "but there is no spoon" – maybe the framework you look for is vanilla CSS. Write sensible markup to hold your content (almost no divs), CSS it and be good. Sounds that feasible?
Re:This website has 81% battery power remaining by throwaway11602 on Sunday December 12, 2021 @04:19PM (#29533719)
> ... vanilla CSS... Sounds that feasible?

Vanilla CSS is the other end of the spectrum, but the problem is there is apparently nothing between hand-crafted CSS and a full front-end framework. People, like me, who are not good at design will choose the convenience of the latter over going through the tedium of the former, even if we don't really want to.

Re:This website has 81% battery power remaining by mro_name on Sunday December 12, 2021 @04:27PM (#29533795)
You won't be a sculptor if you avoid the chisel. If in rome, do as the romans do. If you want to swim, you'll get wet.

There is no design in/for the web without html+css, is there?

Edit: by removing 3rd parties from your project you remove a lot of overhead and current and future risk. But be warned: Maybe your company sells exactly that for a good margin and you ruin the business model.

Re:This website has 81% battery power remaining by squeaky-clean on Sunday December 12, 2021 @07:40PM (#29535288)
We don't want to sculptors. We have other projects that just happen to require a sculpture as part of finishing them.

> There is no design in/for the web without html+css, is there?

Only as much as there's no programming without assembly language.

Re:This website has 81% battery power remaining by mro_name on Monday December 13, 2021 @02:20AM (#29537501)
> We don't want to sculptors.

It is really sad that you are forced to do things that you believe you are not capable of doing and refuse to do.

Re:This website has 81% battery power remaining by squeaky-clean on Monday December 20, 2021 @12:10PM (#29627177)
It's not that I don't believe I'm capable of it. I do not want to do it. I'm happy to not have to do it.

When did I ever say I was not capable of doing it? It's really sad the way you push your mindset on others.

Re:This website has 81% battery power remaining by chakkepolja on Sunday December 12, 2021 @03:26PM (#29533264)
What's your opinion about bootstrap? Unfashionable I get it, but doesn't it serve the purpose?
Re:This website has 81% battery power remaining by throwaway11602 on Sunday December 12, 2021 @04:21PM (#29533738)
It's been a long time since I looked at Bootstrap. I don't remember it being anywhere near as easy to create a nice-looking page with it as it is with Vuetify.
Re:This website has 81% battery power remaining by avrgamp on Monday December 13, 2021 @08:16AM (#29539279)
How about Tailwind?
Re:This website has 81% battery power remaining by mattl on Sunday December 12, 2021 @04:13PM (#29533674)
Bootstrap is unfashionable?
Re:This website has 81% battery power remaining by citizenkeen on Sunday December 12, 2021 @04:43PM (#29533951)
In the same way that Corollas, Applebee's, and Walmart brand jeans are unfashionable, yes.
Re:This website has 81% battery power remaining by toastal on Monday December 13, 2021 @12:43AM (#29537022)
Bootstrap v2 had a LOT of unnecessary features while simultaneously lacking features because of Less limitations. By v5 it was significantly slimmed down if not for removing IE support and jQuery, but also a lot of rarely-used components.