r/AskProgramming • • Apr 20 '26

Other Why are browsers such huge pieces of software?

Yeah, I know it's because they do a lot of things, Sherlock.
I also know that it's easier for non-techy users if everything simply works out of the box and that there are corporate incentives to create incompatible digital walled gardens.

More precisely: Why are browsers not more modular?

Take the web page renderer for example. As far as I am aware every browser (engine) has their own. But for the sake of compatibility, wouldn't it be much more reasonable to have a separate executable responsible for only the page rendering? This is already done with things like QT and GTK, but why not for rendering web pages?*

Same goes for built-in password managers. All those that I ever interacted with suck. Why spend effort maintaining that and have that be a browser extension (which I assume is the option most tech-literate people use anyway) or a separate package to install on your system?

I'm sure there are more and also better examples for things that could be less monolithic.
The fact that a browser is such a huge project to do leads few browsers at all (that aren't literally the all just chromium or firefox under the hood)

Not part of the question, just yappin:

A lot of things are done in a modular way. I'd say the majority of them work great and the software ecosystems around things that are built around the concept of working together are much healthier. (eg. smtp, xmpp, http, pipewire, dbus, there are probably better examples but you get the point)

*: I am aware of qutebrowser

59 Upvotes

46 comments sorted by

View all comments

Show parent comment

6

u/webbitor Apr 21 '26

My ass. Everything is made with a javascript framework whether it needs one or not.

8

u/look Apr 21 '26

But that’s not the browser’s bloat. That’s a broken webdev engineering culture that standardized on terrible shit like React.

3

u/BobbyThrowaway6969 Apr 21 '26

That's more what I was focusing on I guess. Stuff run by the browser. We have 50 tools/franeworks to do effectively the same thing and people will bring them all into their project.

1

u/spritzed_anus Apr 22 '26

Alright I'll humour this one.

Why do you think people might choose to use javascript for their websites? Which uses do you consider valid and which invalid?

What are some examples of "sites that don't need javascript" with the exception of pure static sites? Is using a PHP backend acceptable?

What does a healthier web ecosystem look like to you? I mean tangible actual technical gains from not using things like JavaScript.

Share us your portfolio/dev site that uses no JS thanks.

2

u/VeryAwkwardCake Apr 22 '26

most portfolio websites do not need javascript, and plenty that do are laggy dynamic-scrolling messes

1

u/spritzed_anus Apr 22 '26

Yeah thats not what I asked. Share us your no-js portfolio?

1

u/Specific-Teacher-241 Apr 23 '26

Pure static sites are what need no JavaScript. Who is arguing this point?

1

u/BobbyThrowaway6969 Apr 23 '26 edited Apr 23 '26

Not saying to get rid of javascript, I'm saying we have too many things that overlap the same job and people end up including all of them into their web project just to use 20% of each. I wish this stuff got consolidated and we didn't have 5000 startups every day clobbering together some "framework" without properly checking what we already have. I know half the motivation for that is because they want a cool sounding name, but every time a new framework comes about to glue a couple smaller frameworks together it introduces bloat every time. Electron is one of the worst offenders, and I bet they reeeeally just wanted to call something "electron". Web dev is quantity over quality & it's making a huge mess.