3 ms·
jQuery is still around and still useful for a certain class of applications. But to say that jQuery won for rich web apps is to ignore all the churn we went thr
by chrisco255 9y ago
jQuery is still around and still useful for a certain class of applications. But to say that jQuery won for rich web apps is to ignore all the churn we went through in frameworks and tooling to finally end up with Webpack, NPM, Babel and React.
React's target is complex apps. It's designed to scale both with application complexity and team size. jQuery never was designed to scale. And anyone who started with jQuery and built a rich single page app will generally tell you of all the imperative pitfalls you'll find.
The thing is, the web has evolved. The simple tools that attracted us to the web when web was mostly a presentation layer just don't cut it.
The "old" web is still there for beginners. If you want to learn to build basic websites without having to learn package management, numerous libraries and frameworks... jQuery is still a great option.
I'm always skeptical of loose analogies. 2017 isn't 2010. React is not Dojo. I'm not even saying React is the end all be all...but it works really well and it will continue to hold its position unless something better comes along that enough people are excited about to beat React's ecosystem.
For beginners there are tools like Next.js and Gatsby which allow you to create server rendered React apps with minimal config, setup, etc.
React also has React Native going for it, which is still young and booming.
- demonshalo 9y ago> Webpack, NPM, Babel and React. Each of which alone has more flaws than jQuery could ever dream of producing, and combined they produce more complexity and problems than they solve (in most cases). Larger code base, enlarged attack surface, code maintenance and management, higher costs, surrendering of control, etc. Everything in this world is a trade-off and you seem to greatly underestimate the downside of the things you champion. > React's target is complex apps. Very few web-apps need to be complex. The front-end portion of the web is a presentation layer of whatever data is stored server side. Granted not all applications are like that but the vast majority are (I'd argue over 99%) or at least should be. > jQuery never was designed to scale. And anyone who started with jQuery and built a rich single page app will generally tell you of all the imperative pitfalls you'll find. What's with this scaling fetish? It's a website that runs in a browser. If you cant get it to work with jquery, it's you that can't "scale" not the tools. Again, I grant you that in some cases more than jquery is needed. However, this scaling fetish is a symptom of the failure on the part of the devs not the tools. Fyi, this is how you sound right now (https://www.youtube.com/watch?v=b2F-DItXtZs https://www.youtube.com/watch?v=b2F-DItXtZs) which I don't think is a healthy attitude to have. > The thing is, the web has evolved. The simple tools that attracted us to the web when web was mostly a presentation layer just don't cut it. For every 1 example you give of an application that has such need, I will provide exactly 1000 counter-examples. > For beginners... I hate this elitist attitude. The web isn't that much better today than it was 10 years ago. I've been doing web-development for 15 years now and all I see is increased complexity in return for visual flair. Granted, that has its value, but it isn't as great of a thing as you claim it to be.
- oldboyFX 9y agojQuery is a syntax-sugar library. It's not comparable to react/redux, dojo, angular, or any other "framework". You could compare it to lodash, moment.js or similar.
- trumbitta2 9y agoThe one "designed to scale both with application complexity and team size" is actually Angular.