fetch() allows you to make network requests, similar to XMLHttpRequest. XMLHttpRequest used to be more popular but more and more developers are moving away from that method because of the Fetch API’s added flexibility and feature set.
One of the main differences between the two is that the Fetch API uses Promises, which allows for cleaner and simpler code.
A good resource for learning more about Promises is this Google article.
At their most basic, promises are…
First a quick introduction:
I was trying to explain to my friend what a gem was in Ruby and I realized that while I understood what a gem was, I wasn’t great at teaching it! So this blog is for my friend and for anyone who “gets” what a gem is but is a little shaky on the specifics.
Ruby gems seem like magic at first! But they’re really just open-source libraries or plug-ins. A gem is a package of pre-written code you can download and install to fill a specific need. …
In preparation for project week, I began looking into APIs but found it hard to wrap my head around the definition after staring at labs all weekend.
So let’s break it down into language anyone can understand.
API stands for Application Programming Interface.
In simple language, API is the messenger. It takes requests, tells a system what you want to do, and then returns the system’s response back to you.
It helps to keep in mind how the Web works.
Every page on the internet is stored on a remote server. When you use your computer to access a webpage…
Software Engineering Student @ Flatiron School