What do you guys think?
use fetch api: developer.mozilla.org/en-US/docs/Web/API/Fetch_API
There is no value in knowing details of implementation when you use abstractions that are validated by community and experience. If you brag that you can do XYZ in a native way, you focus on meaningless aspects of development and miss the bigger picture. Only in school you need to know meaningless things to pass some exam. But in real life, ability to think and solve problems is far more important than the ability to implement stuff from scratch. There are lots of problems that I could not solve without looking up the quirks. But I think that there is a lot more value in admitting you do not know all the details, and if you do need to write it all by yourself, you will look it up and do a good job. Humans forget stuff. If one can implement a feature by hand without looking it up, in a while, he will fail, but still think that he can do it. But he will forget a small detail, and the code will have bugs. Never try to remember constants in science. And such things, in our scope, are constants. And they belong in a library or config file. Not in our head.
Unfortunately, yes. I mostly prefer to work with vanilla JS, for AJAX, I use the HTML5 fetch API. and add a polyfill from GitHub to the browser. Unfortunately, because some clients have a stone-hearted developer who believes jQuery is king, I still know how to use jQuery's $.ajax without looking it up.
So so.. I would need to reference it but since I always use vue.js I don't see the point in remembering the native way, I feel I can occupy my memory better
Rodrigo Garcia
Ninja man
Now a days, I believe there's no point in learning or knowing every aspect of just a single language, when in the real world are a lot of other languages that at some point you're going to use, others are thousands of the already saturated area of Frameworks which some use special way of writing in spite of being the same language. It's simple not useful to know a 100% of pure language or trying to implement something natively just for the fun of it when you have to deal with a dead line and low budget. I don't understand why a lot of people out there try to re-invent the wheel and not to improve it.