No BS. Quitting your Job to Code


Authentically Sharing my Journey into Web Development

What is Node.js

According to LearnCodeAcademy’s video on Node JS, the following is a brief intro to Node.js. The creators of Node, took JavaScript, which is normally confined to a web browser, and they allowed it to run on your computer. A JavaScript engine for google chrome can now run on your machine. JavaScript in this new environment allows us to do things like; listen for network traffic, access files on our computer, listen to HTTP requests your computer receives and send back a file.


SQL Joins (Queries and Tables)

Today we will be talking about SQL joins, a powerful way to relate and aggregate data across many tables. First, lets start with definitions of each.

An Important Difference

A SQL join clause is a way to combine ROWS from two or more tables, based on a common column between them. After a join CLAUSE, or join QUERY is preformed, we have essentially search RESULTS. The data may be coming from multiple tables, and we may rename columns, but the final product is simply a search result. There is no manipulation of tables in the database, only extractions.


The Basics of Table Relations in SQL

Let’s start with some basic definitions of keywords.

Relational database - a database structured to recognize relations among stored items of information.


Authentication Basics with Easy to Understand Analogies

##Authentication is how a website determines the content a user sees and the features they are allowed to use. It’s like when you arrive at the restaurant and they say, ‘Who are you? (username and password), and then they lead you to your table (features/content that you are have permission to use/see). Or more simply, ‘who gets to see and do what’ on a web application. The specifics around this type of control system is based on four main pillars, which I will summarize below.

  1. Identification - Who you claim to be. Most commonly, your username and password.
  2. Authentication- Confirmation that you are, indeed, who you say you are. (username and password checks out)
  3. Access Policy - Specifically what you are allowed to do and see on a website. For example, are you an administrator for the site or a public user?
  4. Authorization - The mechanism is which those features/and content are served or granted to the each specific access policy. For example, creating certain controls such that a public user doesn’t stumble upon or access features only an admisistrator should have access to.

Synchronous and Asychronous JavaScript, and Fetch Requests

Let’s start with the basics. Generally speaking, JavaScript is single threaded, meaning everything else in the subsequent code is blocked until the current task is completed. Essentially, each operation occurs in order, one after another. We call this work flow synchronous. Most operations in javascript are performed synchronously. However, there are some disadvantages to synchronous code. Because each action is ‘blocking’, the DOM is paused/frozen or unavailable until the task is complete, leaving the user waiting on a locked browser to open up. If we need to load a bunch of data, the browser may lock up for an unreasonable amount of time while the data is loading. This is unpleasant for the user!