Then how can you say they are mediocre? You're obviously talking bollocks, and you proven it yourself by saying you stepped away from building software. Go play with whatever you play with now.
I can say they're mediocre because I've done years of development with those technologies and more. I'm currently pursuing academic endeavors. The reason I said there's no best technology is because whatever you choose is going to have some shortcomings to it. Deciding on a tech stack is basically a concession.
React was literally made because everyone relized one way data binding (which is how you naturally build pages in PHP) was much much easier to reason about, and if you need a state change you just rebuild the entire page based on the updated binding (also like PHP).
The PHP paradigm was always great, it just couldn't do client side rendering.
I remember the use case someone gave in an early talk for React being that the notification icon count was often incorrect and would still show a count even after viewing your notifications and React fixed this because of the one way data binding. And then a few years later I remember using facebook and still having this issue and chuckling at how they changed the entire way web development happened and still couldn't solve this problem.
Funnily enough, the thing that actually fixed that (for Facebook messenger, which is where that bug continued to occur) was their own adoption of a different programming language, OCaml, which they reskinned as “ReasonML.” I personally love the language, but the funny thing is that ReasonML basically takes the functional programming paradigm of React and enforces that at the language level.
So in a way, they solved the problem by doubling down on the initial solution. Sometimes we stumble our way into success.
I think the book hooked talks about why this is a feature and not a bug. They want you to click that icon to get the small dopamine hit, whether the icon is accurate is secondary
I still get this bug in the app. I assumed it was intentional so you'd continue to use the app because you'd click on the notification to clear it instead of exiting.
Also, it’s worth pointing out that this was the shift toward functional programming in the industry.
React was initially created by a guy at Facebook in the SML programming language, which is a functional language that basically demands that type of one-way data flow. That was the prototype for the JavaScript version we know today.
Functional programming generally involves entirely avoiding mutation (at least at the interface level) through most of the program, and pushing mutation and effects to the edges of the program, e.g. right at the end of the React update process where everything needs to be committed to the DOM and the actual object mutation occurs.
This was a catalyst to popularize functional programming in other parts of the programming community, like adding lambda functions in Java. It was a real breakthrough in programming language/library design.
Totally fair, but I would also say it was part of a broader paradigm shift that made Scala and Kotlin more popular, and React was at the forefront of that shift. It probably wasn’t the actual “beginning” (if that’s even a coherent concept), but it really kicked off the FP trend for a much broader audience.
If it was made by a guy writing functional code, it's weird that React initially worked with class based components. Functional components make a lot more sense given the history. Probably in part why the paradigm exists now, and is the recommended default.
Yeah, that’s true. At the time, classes were very popular. OOP was the dominant paradigm. And frankly, the lifecycle methods actually made a lot of sense, even if they were complicated and prone to some weird bugs.
But funnily enough, with a sufficiently advanced type system, you can basically do all the classic FP stuff using classes/objects as a basic building block. Scala is a case in point. You just have to squint your eyes a bit.
In fact, OCaml specifically has some object-oriented concepts. Besides supporting an actual object/class system (which kinda sucks), the first-class modules and module functors basically give you a lot of what you want from OOP, like dependency injection and some degree of polymorphism. And if you use discriminated unions, you get dynamic dispatch and polymorphism out of the box.
Frankly, the distinction between OOP and FP languages can be quite thin if you just buy into one paradigm and enforce it. If you squint hard enough, React’s use of classes turns out to be quite functional.
When I first heard about React etc I was like "Great but what do search engines see? A blank page?" All the search engines do JavaScript now I guess, but they did server-side rendered React in that mid period?
React has always had server side rending, the main issue with the older way was you had to process everything on the server, ship it to the client with the client side code, then rehydrate everything on the client. But also early on it was more commonly used for an “app like” experience like dashboards that wouldn’t be open to web crawlers any way.
But also also… yes some sites completely messed up their search results for a bit.
I’m old enough to remember: - 2000’s all server side rendering is great! Django, .Net MVC etc… - 2010’s single page web apps are the future! - mid 2010’s have you heard of isomorphic React?! (I.e. server side rendering)
A tale as old as time in software that always frustrates older generations: - gen 1 creates solution to problem that works - gen 2 sees solution as old thing and creates something newer and claims it’s the future - gen 3 reinvents gen 1 thing, calls it something different and claims it’s the future - gen 4 reinvents gen 2 thing, calls it something different and claims it’s the future. - rinse and repeat.
- Gen 1 (90s and early 2000s): Everyone does server-side rendering because it’s the most natural thing to do. You get an HTTP request and you return the whole page.
- Gen 2 (2000s to 2010s): The web explodes in popularity and scaling at pace is a challenge. JavaScript and its ecosystem are becoming more mature and usable. Engineers figure out that by offloading as much as possible to the client, it might be possible to distribute entire static web pages from the edge using CDNs. It’s the birth of client-side rendering as the answer to the scalability challenge.
- Gen 3 (2010s to 2020s): The web growth slows down and the public becomes more demanding. Edge compute is cheap and powerful and JS frameworks are getting more and more advanced. The web fragments as many techniques co-exist, with some even going towards partial server-rendering to get the best of both worlds.
I know this is not a place for newbies, so downvote me if that's the case, but I can't resist to ask something. I started programming with ASP 3.0, went to VB and .NET. But for health reasons I stopped working some years ago. Recently I was ask to do a website with a small backoffice to manage the site contents. I was given a template with React, so with AI help it ended to be quite easy. So for the backoffice I kept working with React, which leads finally to my question. How bad it is to use React to do all the work, and what it would be best option(s) to do this?
No one's goin to downvote you for asking genuine questions. React isn't bad or good, every language, framework and library has its pros and cons and has a use case where it shines, you can use plain Vannilla JS with HTML and write up a backend server with SpringBoot or Flask, it all boils down to your constraints for the project and the requirements.
React has a huge ecosystem and isn't opinionated on how you get to do things vs like angular, but then you gotta take all the architecture decisions yourself and add packages accordingly.
It all boils down to the team dynamics, the level of abstraction and the optimal codebase with best performance, there's no good or bad frameworks or libraries per se.
Heck I recommend use Vue, it gives the best of both worlds of React and Angular.
Like I said, unfortunately I had to stop working a few years ago. So I don't have any knowledge of React, Vue, Angular, etc.
When I was given this template, I decided to do my own project using the features of the template. I added my own features, like translation to other languages. With the help of ChatGPT, in a week I had the website up and running.
It was then that I found that I was actually having a lot of fun, to my own surprise.
The backoffice was needed to be able to change the website menu of the restaurant that my husband is going to open.
Since this is a personal project, I decided to do something more complete, so now I have areas to manage users, accounts, and all the website content from the favicon to terms and conditions are in a small database. My objective is making the website modular in a way that suits any kind of business.
In a nutshell, I have something like Nginx → React → Next.js → SQLite → Prisma
Maybe in a new future I will contact small businesses and try to sell the package. I don't know if it's going to work, but we'll see.
It absolutely was not the view in model view controller.
It doesn't fit into mvc at all. It's like saying barbeques started as burners on a stove. No they didn't. Just because they both cook food, doesn't mean one started as part of the other.
Meanwhile PHP scriptkiddies are concatenating strings to produce html, and couldn't ever hope they have the same kind of integration between backend and frontend.
172
u/Most_Researcher_3010 Sep 23 '26
React really said: MVC? Nah, let’s make the V responsible for everything 😂
141
u/Few_Move_4594 Sep 23 '26
PHP has been a good language for years and I'm tired of pretending it's not.
422
u/rubyruy Sep 23 '26
React was literally made because everyone relized one way data binding (which is how you naturally build pages in PHP) was much much easier to reason about, and if you need a state change you just rebuild the entire page based on the updated binding (also like PHP).
The PHP paradigm was always great, it just couldn't do client side rendering.
36
u/DecalageVersLeRouge Sep 23 '26
When I first heard about React etc I was like "Great but what do search engines see? A blank page?" All the search engines do JavaScript now I guess, but they did server-side rendered React in that mid period?
42
u/Barbanks Sep 23 '26
I’m old enough to remember:
- 2000’s all server side rendering is great! Django, .Net MVC etc…
- 2010’s single page web apps are the future!
- mid 2010’s have you heard of isomorphic React?! (I.e. server side rendering)
A tale as old as time in software that always frustrates older generations:
- gen 1 creates solution to problem that works
- gen 2 sees solution as old thing and creates something newer and claims it’s the future
- gen 3 reinvents gen 1 thing, calls it something different and claims it’s the future
- gen 4 reinvents gen 2 thing, calls it something different and claims it’s the future.
- rinse and repeat.
2
u/Cinnammonn Sep 24 '26
I know this is not a place for newbies, so downvote me if that's the case, but I can't resist to ask something.
I started programming with ASP 3.0, went to VB and .NET. But for health reasons I stopped working some years ago. Recently I was ask to do a website with a small backoffice to manage the site contents.
I was given a template with React, so with AI help it ended to be quite easy. So for the backoffice I kept working with React, which leads finally to my question. How bad it is to use React to do all the work, and what it would be best option(s) to do this?
8
u/jenish4773 Sep 23 '26
We’ve come full circle. PHP devs are having flashbacks 💀
3
u/Apprehensive_Bit7392 Sep 23 '26
And use sever is a perfectly valid string that just quietly does nothing.
3
u/the_horse_gamer Sep 23 '26
"use server"has nothing to do with server side rendering. it creates an endpoint and replaces the function with a request to that endpoint.3
u/No_Arm_3509 Sep 23 '26
Whatever that means
1
u/terrorTrain Sep 23 '26
It absolutely was not the view in model view controller.
It doesn't fit into mvc at all. It's like saying barbeques started as burners on a stove. No they didn't. Just because they both cook food, doesn't mean one started as part of the other.
1
u/thanatica Sep 25 '26
Meanwhile PHP scriptkiddies are concatenating strings to produce html, and couldn't ever hope they have the same kind of integration between backend and frontend.