Stepping Backwards from AngularJS to JQuery – An Experiment
hundredminutehack.blogspot.com
Stepping Backwards from AngularJS to JQuery – An Experiment
1–10 of 68 posts
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#2And that's why you should use http://intercoolerjs.org for most of your stuff, and a bit of jQuery where necessary for more exotic UX needs. The people who got sick of a mess of jQuery code were right, but they went the wrong direction to fix it. We have to go back.
I know people get tired of my shilling, but intercooler really is a better way for many, and maybe most, web apps to be developed.
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#3EDIT: Had the 'on' parameters mixed up. Here's the api doc: https://api.jquery.com/on/
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#4Maybe I'm getting old.
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#5Giving up Angular did force me to think more about the DOM. Vanilla jQuery doesn't insert itself as readily into HTML code as an Angular directive can. And that's why you should use http://intercoolerjs.org for most of your stuff, and a bit of jQuery where necessary for more exotic UX needs. The people who got sick of a mess of jQuery code were right, but they went the wrong direction to fix it. We have to go back. I…
I recently used a touch of intercooler on a Django project and it just felt so right. Once I'd included intercooler.js itself, everything else was done via normal http attributes. It felt clean and lightweight.
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#6Even Angular is still difficult for me to grok and sometimes I wonder if stuff that comes out of Google "suffers" (for me) from Google having unlimited resources and employing superior engineers? Would Google have a difficult time empathizing with "average" programmers with limited resources?
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#7Heck, if you can can transpile to ES6 or if you're only targeting new browsers, you could probably even drop the Handlebars in factor of template literals without losing too much convenience.
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#8I found this interesting because it seems to have been written by a person who learned Angular before jQuery. I haven't run into that before. Maybe I'm getting old.
All solutions go through a maturity cycle where we invent an ostensibly "better" way of doing it because we're frustrated with the old way -- jQuery came about because early DOM selectors were lacking, Angular came about because people built complicated client-side spaghetti code state machines with jQuery -- but eventually a new wave of people comes along and the 'new way' becomes the 'mainstream way', and the like.
Like this author has done, it's interesting to go back and rediscover how things were done in the past, and in many cases you learn more about the problem domain or your stack of choice by doing so. My age is also showing that Angular no longer counts as cutting-edge, early-adopter tech, but firmly in the camp of mainstream ways of doing client-side code.
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#9Giving up Angular did force me to think more about the DOM. Vanilla jQuery doesn't insert itself as readily into HTML code as an Angular directive can. And that's why you should use http://intercoolerjs.org for most of your stuff, and a bit of jQuery where necessary for more exotic UX needs. The people who got sick of a mess of jQuery code were right, but they went the wrong direction to fix it. We have to go back. I…
I am personally fully behind your shilling and try to shill on your behalf whenever possible. It's sad how little interest intercooler has managed to garner when it's a fantastic antidote to so many things that are wrong with client-side development. I recently used a touch of intercooler on a Django project and it just felt so right. Once I'd included intercooler.js itself, everything else was done via normal http a…
Re: Stepping Backwards from AngularJS to JQuery – An Experiment
#10I found this interesting because it seems to have been written by a person who learned Angular before jQuery. I haven't run into that before. Maybe I'm getting old.
1. NoSQL traditional RDMS because of scaling/sharding
2. Angular jQuery (or anything similarly lightweight) because of the issues around huge complex webapps
3. 'Fast' languages 'nice' languages ( ;-) ) because of performance concerns
4. Static typing Dynamic typing because of maintainability across large teams.
5. Docker/Microservices etc traditional architectures because of... I really have no idea...
So I guess the degenerate case is some poor chap learning web development who decides to write their Pet Store as an angular app with a Scala API backed by Mongo and Solr deployed to a Kubernates cluster ;-)