3 ms·
My experience with javascript as a non-software developer/non web person has often involved frustration. A good example is an experience I had a few years ago
by bigger_cheese 3y ago
My experience with javascript as a non-software developer/non web person has often involved frustration.
A good example is an experience I had a few years ago (circa 2018)
My work acquired some new software which published some results using a REST endpoint. I wanted to pass some parameters to the endpoint get a response and display the response on a webpage.
I'm used to working with Python/R and SQL databases it is relatively easy to write code in these languages to execute a SQL query and publish the result.
To do the same thing with endpoint I had to learn about ajax, asynchronous code, callbacks and then later deferred promises. What I thought would be relatively simple ended up being horrendously complicated to code.
I think part of the problem is the javascript language changes and adds new features so rapidly it is very hard to search google for help in my case I found code examples using callbacks, I had massive issues trying to make it work only to later discover that was old way to do it and the new way was to use Promises instead. Most of google searches I made went to horrendously outdated stackoverflow posts and there was no obvious way to tell if answer was best practice or not.
Doing the same google search again today in 2023 it looks like they have reinvented how to do it with something called "Await" now.
- jdlshore 3y agoAwait is just syntactic sugar for promises.
- solumunus 3y agoYou would find it even more difficult in almost every other language available.. What you're describing is simply the pain of learning a programming language with virtually no prior experience. Maybe it's more simple in Python but this really isn't that complicated, it's certainly not a valid criticism of JS.
- icedchai 3y agoSounds like a perfect use for jquery. You don't always need to use the newest framework.