Open in app
Home
Notifications
Lists
Stories

Write
Joseph Harwood
Joseph Harwood

Home

About

Nov 8, 2019

PostgreSQL JSON

My friend, JSON, is very popular these days. We will explore how to query JSON objects in this blog post. Let’s create a table and populate it. CREATE TABLE purchases ( ID serial NOT NULL PRIMARY KEY, purchase json NOT NULL ); INSERT INTO purchases (purchase) VALUES (…

Programming

2 min read

PostgreSQL JSON
PostgreSQL JSON

Nov 1, 2019

PostgreSQL Recursive Queries

Common Table Expression (CTE) is a form of recursive SQL that makes a temporary result set of a query. It is an alternative to subqueries, views and user-defined functions that is useful for generating summary reports of a query. …

Programming

3 min read

PostgreSQL Recursive Queries
PostgreSQL Recursive Queries

Oct 26, 2019

SOLID Javascript

This post will cover what the S.O.L.I.D. principle is and show examples of each in Javascript so that you will have a SOLID understanding of it. Let’s break these down and show examples: Single Responsibility Principle A class should have one and only one reason to change, meaning that a class should only…

Java Script

5 min read

SOLID Javascript
SOLID Javascript

Oct 11, 2019

Q: NoSQL? A: No Problem!

Most programmers are familiar with SQL (Structured Query Language) and Database Management Systems (DBMS) like PostgreSQL, SQL Server, Oracle, MongoDB, MariaDB, Redis, and MySQL. What you may not know is that these DBMS’s are either Relational or Non-Relational. …

Programming

4 min read

Q: NoSQL? A: No Problem!
Q: NoSQL? A: No Problem!

Oct 5, 2019

The Worst Code Challenge Question

This is a clickbaity title, but this was easily the most difficult code challenge problem that I have solved yet. This is in no way the most efficient solution to this problem, but it works. I am very interested if anyone reading this knows of a more elegant solution to…

Java Script

6 min read


Sep 27, 2019

Coding Problems Part 2

This week I am going over some Javascript coding problems that I found rather challenging and learned a lot from working on. Shortest Substring Given a string input, find the shortest substring that has all of the unique letters of the string within it. For example, when given s = “dabbcabcd”, the…

Java Script

4 min read


Sep 22, 2019

Recursion and Binary Search Trees in Javascript

Recursion Recursion is the process in which a function calls itself directly or indirectly. A recursive function is a function that calls itself during its execution. A simple example of a recursive function: const factorial = (n) => { if (n === 1) {…

Programming

4 min read

Recursion and Binary Search Trees in Javascript
Recursion and Binary Search Trees in Javascript

Sep 13, 2019

Data Structures Implementation in Javascript Part 2

This blog post will discuss how to implement Stacks and Queues in Javascript. Stack A stack is a linear data structure represented by a real physical stack or pile, a structure where insertion and deletion of items takes place at one end called top of the stack. The basic implementation of…

Java Script

3 min read

Data Structures Implementation in Javascript Part 2
Data Structures Implementation in Javascript Part 2

Sep 8, 2019

Data Structures Implementation in Javascript Part 1

This blog post will discuss how to implement Array Lists and Hash Tables in Javascript. Array List An Array List uses a dynamic array for storing elements. Array Lists are created with an initial size, when this size is exceeded, it gets enlarged automatically. The elements shift whenever an element is deleted…

Data Structures

3 min read

Data Structures Implementation in Javascript Part 1
Data Structures Implementation in Javascript Part 1

Aug 31, 2019

PostgreSQL Backup and Recovery

One of the most important principles of working with databases is that you always need a way to recover the database structures and data in case of an emergency. Some examples of an emergency could be that a table was loaded with bad data or a database structure was modified…

Sql

3 min read

PostgreSQL Backup and Recovery
PostgreSQL Backup and Recovery
Joseph Harwood

Joseph Harwood

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable