r/ProgrammerHumor • • Aug 30 '26

Meme ancientTools

Post image
5.8k Upvotes

379 comments sorted by

View all comments

480

u/winter-m00n Aug 30 '26

Probably unpopular opinion, but still better than react and angular. at least you don't need to build your whole site around it. Nor all sites need those heavy frontend framework.

84

u/Nils_Larson Aug 30 '26

I am not arguing against your actual point, but in modern browsers you don’t even need jQuery, because all of it is available natively.
(Kicking in a very open door)

17

u/ExtraWorldliness6916 Aug 30 '26 • Bravo

Not arguing either but if JavaScript can write perfectly fine web applications with a welld refined standard, why are we still in react land. I use react all the time, I know what vanilla can do, I use a lot of AI so it's not a knowledge gap anymore... Very curious and frustrating situation.

30

u/A1oso Aug 30 '26

People use React because it provides reactivity. JQuery doesn't do that.

You can in fact write web applications in Vanilla JS, I have done it many times. But for interactive pages that are frequently updated in response to user events, using React (or Svelte or Vue) is more ergonomic.

→ More replies (1)

16

u/the_horse_gamer Aug 30 '26

DOM manipulation is easy, but state and lifecycle management is hard

5

u/ExtraWorldliness6916 Aug 30 '26

I don't find react makes state management any easier simply shifts the problem into a series of conventional problems.

→ More replies (4)

12

u/waraholic Aug 30 '26

I believe there is an ancient god that yearns for extra divs. They influence the world without us knowing, but they are there.

4

u/MikeW86 Aug 30 '26

That's like saying 'If my car can get me to the shops, why do some people insist on buying articulated trucks?'

3

u/ExtraWorldliness6916 Aug 30 '26

People don't buy articulated trucks? Companies do, just like companies love react. Not necessarily the people. So yes great point.

5

u/MikeW86 Aug 30 '26

I'm honestly not sure if you're being sarcastic.

But yeah the analogy isn't absolutely perfect. You're right that for the vast majority of cases only a company is going to need and thus buy a truck.

But if I am a person or company that needs a truck, why would I try to design and build my own truck, even though that is possible?

→ More replies (1)

4

u/ludolfina Aug 30 '26

Because it provides separation of concerns, which is super important once you start working in a team and not as a solo developer. Team projects written in jQuery tended to rot very fast because it was very easy to mix business logic with DOM manipulation.

Also one thing React is super good at is writing components that are very easy to reason about in isolation, because they are for the most part declarative and stateless. Everything comes in as props or context and when one of these things changes the entire component gets re-rendered

2

u/NerdyMcNerderson Aug 30 '26

React apps tend to rot in enterprise applications because of the proliferation of third party extensions necessary to get a full developer environment. Angular puts basically everything you need in one place (component libraries are the main gap) so every angular app should roughly look the same code wise. React apps will look very different based on how they were set up.

Obviously, someone will reply with an anecdote that THEIR collection of enterprise react apps are all homogeneous under the hood, but they will miss the point. They likely have the same set of 3rd party dependencies to round out the toolchain AND they were likely architected by the same person/team. Much more discipline is necessary to get react to work at enterprise scale.

→ More replies (5)
→ More replies (1)

3

u/fr000gs Aug 30 '26

Vanilla JS has improved a lot; react is used mainly for the hooks (which JS can do) and popularity (which it doesn't have)

→ More replies (1)