Hacker News new | ask | show | jobs
by seph-reed 2374 days ago
I know this is a low quality comment, but given I was once the guy at my last company who's job it was to make React do things it didn't want to, I really dislike React. It's a dead end for interactive UIs, and the closer you can stay to native html elements with encapsulation, the better off you'll be later down the road.
3 comments

You can use native html elements with react. I'm curious what it is you were trying to do since I'm sure you could do anything native html supports with react.
React is best suited for interactive ui. For static sites just html/css should be fine.
I actually like to use react for static sites too but mostly because my main work is in react and I like to maintain one mental model for everything.
How do you figure?
I call this the 'Rails Paradox'... a lot of people invested into Rails and wrote a lot of software that powers small businesses.

As people exited Rails, the cost of maintenance has gone up... since you have to pay a lot to get someone writing Rails now.

I do think that React has a chance at beating this trend though. As Rails became more and more esoteric with DSLs, utility functions, and `method_missing` hacks that make complex existing monolith codebases nearly inscrutable, and microservices became a preferred way to "throw bodies" at similarly complex codebases, it's not surprising that people started moving away.

React's ecosystem, on the other hand, has embraced strong typing (and alongside it, tooling that lets you drill deep into any method you see on the screen), and it's fully compatible with teams working on discrete backend and frontend components. It's not likely to disappear any time soon, the same way jQuery hasn't disappeared. Yes, it adds a performance cost, but so long as Zawinski's Law holds [0], functional state-to-display-object transformations will continue to be the paradigm, and React continues to lead the pack there. And if new display object abstractions come into play (say, React Native in-browser rendering widgets on the GPU directly via webasm or new browser-specific APIs), React can and will adapt.

Just my 2c.

[0] https://medium.com/programming-philosophy/zawinskis-law-2090...

If it weren't for Rails then maybe those small businesses would not be as successful as they are and wouldn't be around now.

Rails is definitely more niche but it's still a great framework IMHO and it's not dead. Still gets feature updates to this day.

Hope it is not dead. I still haven't taken the time to learn it yet.
It's not bad, the ecosystem makes it good.
Rails salaries are lower than .net where I live. Where do they command $$$?
Bigger parade, bigger cleanup.
Wrong thread?