this post was submitted on 25 Mar 2024
54 points (95.0% liked)

Programming

17433 readers
335 users here now

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!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] abhibeckert@lemmy.world 8 points 7 months ago* (last edited 7 months ago) (3 children)

those projects shouldn’t really exist

You think web browsers should not exist? How do you write Google Chrome, and all of it's dependencies, in one page of code?

I think you're miss-understanding the article. Joel didn't say you should never rewrite an individual component in your code, he was saying you should never throw out an entire project (all of the components) and start from scratch.

He also wasn't talking about "multiple people and man-years of work". He was talking much larger projects. How many people have contributed Chrome? Not just direct contributions writing lines of code, but indirect contributions such as reporting bugs or writing documentation on how it works?

If Google were to start over, all of that would be thrown out. It just can't be done.

All you can really do is what Microsoft did with IE / Edge. Edge was a fork of Chromium which was a fork of WebKit which was a fork of KTHML which was a fork of the KDE HTML Widget. Which dates back to 1996. Internet Explorer started in 1995. Microsoft didn't start Edge from scratch, they basically shifted their team of developers over to another project that was the same age.

The smaller the project, the easier it is to do a full rewrite but realistically it's almost never a good idea unless your product is very young.

[–] lysdexic@programming.dev 3 points 7 months ago

If Google were to start over, all of that would be thrown out. It just can’t be done.

To stress the importance of this very basic fact, people need to understand that even Google, a company with virtually limitless resources to rearchitect and rewrite any and all type of software project, made the call to avoid using major features offered by some programming languages, such as C++'s exceptions, because it could have unintended consequences on the company's legacy code base which they could not rewrite.

And here we are, reading fantastic claims over how complete rewrites are reasonable things while flipping compiler flags to harden legacy projects is unheard of.

[–] deluxeparrot@thelemmy.club 2 points 7 months ago

They actually did somewhat start Edge from scratch originally. They made EdgeHTML as a rewrite of the IE 11 trident engine.

In the end they abandoned it and moved over to chromium. One of the reasons being Google intentionally breaking their sites for EdgeHTML.

[–] MonkderZweite@feddit.ch -1 points 7 months ago* (last edited 7 months ago) (1 children)

You think web browsers should not exist?

Yes. Multiple historical layers, each giving the creators way too much power over presentation, while they are still supposed to handle stuff like accessibility themselves, making a company webpage a thousand manhours project. Browsers being monoliths is only one page of the book.

How do you write Google Chrome, and all of it's dependencies, in one page of code?

So we agree that browsers are way too complex?

[–] lysdexic@programming.dev 1 points 7 months ago* (last edited 7 months ago) (2 children)

Yes. Multiple historical layers (...)

This is reaching a level of idiocy that's completely unheard of.

Just say you know nothing about what you're saying and you're completely oblivious, and sit out the rest of the discussion.

[–] UlrikHD@programming.dev 2 points 7 months ago

Please refrain from using personal insults in this community. You're free to express your opinion, but personal insults does nothing but make the community more toxic. c/programming is a gathering ground for both inexperienced and experienced programmers, so this level of lashing out is uncalled for.