this post was submitted on 02 Aug 2023
1709 points (76.4% liked)

Memes

45740 readers
842 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] chocobo13z@pawb.social 8 points 1 year ago (2 children)

Counterpoint: most Javascript on the web is obfuscated to all hell. While technically you can see the code that's running, it being obfuscated is definitely not in the spirit of FOSS, and largely the open source components of servers are being used to prop up all the closed-source stuff reaching end users.

[–] jamesravey@lemmy.nopro.be 8 points 1 year ago

Counter counterpoint: Often frontend js code is minified so that it is smaller and more efficient to transfer to the browser. For FOSS projects you should still be able to get access to that code, unminified, from the project git repo. In the same way desktop apps often ship as binary executables but you can still see the code that was compiled to build them if you find the source repo.

It does make things harder to debug for an average user but it makes it faster/more efficient to run for most end users (in the case of the desktop or phone app it makes it possible to run without needing compiler toolchains that mom and pop likely wouldn't be able to grasp).

The key thing isn't that what the end user's computer runs is readable and editable but whether the code used to build that artifact is available easily and what restrictions there are on editing and redistributing that code.

[–] drmoose@lemmy.world 5 points 1 year ago (2 children)

It's not about Javascript. All of the frameworks and front end tools are open source. React, nextjs, tailwind etc. - all are foss projects and run the best UX and UI we know of.

[–] pivot_root@lemmy.world 3 points 1 year ago (1 children)

I don't really want to be that guy, but at least in the case of React and NextJS, the companies have a business reason for them being open source.

Meta uses React internally in a lot of projects. Every other company or developer making contributions in their spare time is free labor, and it directly improves Meta's own products.

Vercel has a vested interest in having developers adopt NextJS, as they sell web hosting. It's easier to build a community of developers around an open-source product, and they even help out with contributions, documentation writing, and QA.

[–] drmoose@lemmy.world 1 points 1 year ago

Tbh I'm not exactly sure how is that relevant? Be it Jesus guiding me to make TempleOS or incentive to sell some service the outcome is the same foss

[–] chocobo13z@pawb.social 1 points 1 year ago

My point is more that all these open source tools have been used by many, many, many sites to build a series of black boxes on top, for which there is no source available. I suppose one easy example is the existence of EME in open source browsers, the existence of which being the reason I actually don't run a pre-compiled binary of Firefox, instead building it myself, with EME not built in.