Far and wide, you’ll find only just a few samples of self joins. The first source you’ll probably go to is the Active Record documentation.
The best way to get the hang of these is to make them. To follow along here, you need to know some Ruby…
Vim is a command line editor. Its predecessor was Vi — a UNIX based editor, that was eventually improved to the point, they gave it a new name: Vi IMproved. Hence: VIM.
It’s easy to start up with Vim. I won’t cover installing since it comes prepackaged with Max & Linux. However, if you want to install it on pc/windows, go ahead and visit this site and read the instructions.
It’s pretty easy: first start up your terminal and use the ‘vim’ command and specify a filename of your choice. I’m going to name mine ‘new_file.rb’:
In real life, a ‘heap’ is literally a pile of items. In computer science and programming, a heap is fairly similar, but more specific to organizing data.
To understand what a ‘heap’ is, first go and understand what a ‘tree’ is. Once you’ve read and understood what a ‘tree’ is, understand that a heap is basically a tree with slightly different rules.
Whichever way you define it, a heap is tree with no order and slightly different rules depending on what kind of heap you use. …
A good student of computer science will probably already know this; but a tree is a way of organizing information. In computer science, it’s a very efficient method for storing data for quick retrieval later.
In this case, we’re referring to a data structure that consists of nodes that inherit from other nodes, referred to as ‘parents.’ So every node that is above another node is a ‘parent’ and every node that is below another node is a ‘child.’
After working on a React project for a little bit, I realized it would look a lot nicer as a single page with a “scroll-to” navigation from my site’s navbar.
For React, there’s a great library called ‘react-scroll.’
That is, before the JS method scrollIntoView() was added. You can look at tutorials of how to do everything from scratch, but at the end of the…
Problem solving is a process. It’s easy to forget that in order to solve a problem, you need to actually focus on solving the problem.
At first, I just made quick notes and moved on as quickly as possible. However, as I progressed in my endeavor to practice problems for tech interviews, I realized I had a problem. …
I was messing around with Google Cloud’s Text to Speech API and wanted to test it out by making the call on a Rails backend and receiving the response with a React frontend and playing the sound.
I won’t go into how to use the Google Cloud Text to Speech SDK Gem for Rails, but needless to say, the example code given in the documentation has everything you need.
I will, however, walk through how I made the call to Google Cloud to get the “sound” of the text I sent it.
I created an App called “Du It!” which…
Most of the research done was gleaned from the Mozilla Development Network (MDN) page for Promises, so definitely look below to see the link.
Here’s the purpose of a Promise in one sentence: to defer actions until after a previous action has completed.
The full defiitioin of promises says:
“The promise is an object that represents an intermediate state…
No … Hash.
I’ve been curious about the name and the purpose behind the word ‘hash.’ Referring to just the name means a datatype to store information. Referring to a ‘hash value’ is usually done in the context of authentication.
In general, a hash function is a function that takes a string and returns a value.
The question is: What are they used for and how many different kinds are there?