6

So Im taking over an project from an colleague. And it involves a lot of things from an external API. I cool with that, I enjoy working with APIs in general.

Let me explain it a bit more. I enjoy consuming APIs with frontend frameworks like reactjs and angularjs.

But my colleague had allready started some with consuming one of the endpoints.

He did it with ajax....for god sake. Are you serious?!?!?!!

Ajax calls??? Why ????

So I pointed out that we could use vuejs, we don't have to compile anything like with react or angular.

Things that we need to do are not that interesting nor big. Mostly getting items and maybe filter these items.

But he insisted on using Ajax because there wasn't that must time to use fancy frontend frameworks.

Comments
  • 2
    I may be opening a big can of worms. I'm not primarily a web developer. But... What's wrong with Ajax? If you're using a frontend framework that has a better way of doing it sure. But for simple stuff like you said. Why...Not? It's incredibly simple.
  • 1
    @grimtar I'm oke with using Ajax in this project, but we are using jQuery to inject the data and Dom elements into the page. And I find that somewhat dirty. And not the best practice in my opinion.
  • 2
    How else are you going to consume the data from the API of not using Ajax?

    even Vue.js doesn't come with any ajax like library. You would still need to use fetch or jQuery or something like that for the easy Ajax func.
  • 2
    Ajax != jQuery. Dont confuse the two as they are complitely different. I agree about Vuejs, its dead simple to use and will be faster to develop with that than jQuery.
  • 0
    @IceTimux I would use axios to do that.
Add Comment