Hacker News new | ask | show | jobs
by uk_programmer 2307 days ago
> still unsure i follow. i must be missing something... react does not prevent anyone from using jquery afaik. in fact, anyone can go ahead and use jquery with react if they want.

React / Angular JS etc tend to require spending a lot of time learning how it works first. Then you have to build almost all your application around it. This can take a lot of time, which pushed up costs and complexity. If you are building something like Google Docs or Google Maps you want to build it like a SPA. For a lot of the sites I've worked on in the past building it as a SPA was completely unnecessary.

> react is doing what php did a while ago (and is still doing). it's mixing frontend with backend stuff. i personally find it refreshing!

We've been trying to get away from that for quite a while. I try to write almost all my JavaScript in a way that assumes as little as possible about the page structure, the web application etc. It can be done, however it requires thinking about how your markup works and how the page works.

Generally you should have good separation between your markup, your styling and your scripts.

> we did that for a while then people came and told us how bad it was and we needed to do strict MVC or whatnot. now everybody is doing it and it's cool again!

The problem is that it is cool again. I don't want my backend code tied to my front end code.

1 comments

React is easy as hell to learn nowadays, I'd say about as easy to get into as as PHP. Any semi-experienced developer will be writing production grade code after at most a week of learning.
Is it? Because there is normally things like JSX, React Router, Redux and a lot of other stuff that you have to learn with it to build an application.

I've seen fairly decent backend developers having a right mare trying to get their head around just the npm tooling (no it isn't obvious if you haven't worked with it before).

People don't realise that there is a lot of the eco-system you have to learn just to do something fairly basic. You also have to unlearn things that you've done before elsewhere which itself can be difficult.

So I find this hard to believe.

Anyway this is going down the road of "why don't you use this it is easy?" which isn't the point I was originally making. I personally getting fed up of all the bloody tooling you have to learn to make something basic, when I can just ignore it and go back to basics.

So this isn't quite true for a few reasons.

Reach is quite a different abstraction than we are used to, it's huge and prolific.

It generally takes some time to get used to it. Though one might be able to do 'some production quality stuff' in a week, generally speaking, there's far too much that anyone is going to master in a week.