REST is a convention for structuring URLs, it stands for REpresentational State Transfer. These URLs are coordinated with the CRUD (create, read, update, destroy) action and the associated HTTP verb (GET, POST, PATCH, DELETE). For example, if we had a book site, these could be our URLs:
Polymorphic association is a way to structure our database in rails where a model can belong to more than one model on a single association.
In JavaScript, things that happen in the browser are known as “events”. JavaScript “listens” for these events and can respond to it with event handling. There are a number of different events, the categories include resource, network, focus, websockets, session history, form, printing, keyoard, clipboard, mouse, and many more. The most common events include:
A VPN, or a virtual private network provides a secure connection to a network over the internet and it helps protect from our internet activity from prying eyes. Your VPN service connects your device to a remote server and allows you to mask your local network identity, making it appear as though your IP address is the one of the remote server.
A heap sorting algorithm utilizes a binary heap data structure. A binary tree is a data structure that allows each parent node to have a maimum of two children elements, a left and right child. Heaps are binary trees with some additional rules; heaps must follow a specific order where the binary tree is filled up from left to right and it must be a min or max heap. Max heaps require that each parent node is greater or equal to the value of its childen nodes. Given our unsorted array, we transform it into a binary tree. We then swap the largest and smallest node to place the largest number as the root node, this number will be at the end of the array. We then swap each the elements at each node if it is greater than the child element in order to have a max heap again. The largest node will then be the new root node and it would be the next element in the array. This continues until all elements are sorted and the algorithm is complete. This sorting method has a time complexity of O(n log n), or linearthmic time.