Computer Science

Object-Oriented Programming: Inheritance

Inheritance is a pillar of Object-Oriented programming that aims to re-use code written within an application. Inheritance assists in following the DRY principle (Don’t-Repeat-Yourself). Inheritance allows classes to inherit from a parent class. If we discuss this in the context of humans, children can inherit traits from their biological parents such as their eyes, ears, …

Object-Oriented Programming: Inheritance Read More »

Creating a Ruby on Rails application with a PostgreSQL database

As a lot of us may know, the default database of Ruby on Rails defaults to sqlite3. This is a nice lightweight database to start off with, but doesn’t scale as your project grows. In this article, we’ll discuss how to start a rails application using the Postgres database. Requirements: Ruby v.2.6.5 Rails v.6.0.2.2 PostgreSQL …

Creating a Ruby on Rails application with a PostgreSQL database Read More »