Skip to content

Instantly share code, notes, and snippets.

Design a Public Transit Tracker 🛤🚂

Back story

OOP Design (object-oriented programming) is a good exercise to show how to split up our system into different components. You can think of React Components but instead, we are separating our system into different objects/classes. The important factor of this problem and problems like these are that they are opened ended and force you to think abstractly and creatively. The main goal of this exercise is to be able to draw out diagrams to communicate abstract ideas before they begin to be implemented with code.

These problems are language agnostic (meaning language-neutral, or cross-language)

Learning Objective

  • To understand and design activity diagrams and class diagrams.

PostgreSQL 'trust' Authentication Method Guide

When connecting to your database client to a database, you might get the following error:

connection error error: password authentication failed for user <user_name>

You can solve it by specifying user and password in the connection configuration or by changing how clients are authenticated. This guide explains how to solve the issue with the second approach.


Step 1 - Locate the file pg_hba.conf