News for hackers. Stuff that matters.
Re:Ask HN: Why did Frontend development explode in complexity? by marcosdumay on Monday January 02, 2023 @10:25AM (#34218860)
Yes, the browsers export a lot of capabilities to the frontend. But you point no reason why the frontends must use those capabilities.
Re:Ask HN: Why did Frontend development explode in complexity? by claudiulodro on Monday January 02, 2023 @10:50AM (#34219180)
IMO it's mainly Google and Chrome/ChromeOS trying desperately to keep people away from the competing Windows and Apple ecosystems, which requires that the browser do essentially anything a stand-alone program could do. This doesn't explain why there are a million JS frameworks, but it does explain why the browser has ballooned in features and complexity over the years.
Re:Ask HN: Why did Frontend development explode in complexity? by pixl97 on Monday January 02, 2023 @12:34PM (#34220794)
>This doesn't explain why there are a million JS frameworks

Not sure if this is a valid answer, but I would assume that both Microsoft and Apple provided decent and easy to use frameworks to build applications on their operating system. This setup a particular amount of vendor lock in, the library is already there and doesn't need downloaded/installed making it easy on the end user.

On the other hand, frameworks were not provided by the browser manufactures initially. Also, everything is downloaded so 'include foo.js' is just as easy as 'include bar.js' opening up a vast ecosystem of frameworks.

Re:Ask HN: Why did Frontend development explode in complexity? by cj on Monday January 02, 2023 @10:52AM (#34219208)
The first sentence is a valid reason:

> Because the browser nowadays is an "operating system" that needs to be capable of handling all manner of dynamic software: maps, video, image editors, games, etc.

If frontends didn't use the "OS" capabilities of the browser, how would one build a multi-user real-time text editing app like Google Docs?

Edit (and off topic): Writing this comment gave me flashbacks of using Mapquest online for driving directions before smartphones. You had to print the directions out and bring them to your car on a piece of paper. It worked though!