avatar

Reference Types

Reference Types, or “Why some variable values change without me touching them…” Background In Ruby, if a new array is created by referencing to an existing array, and the value is of the new array is altered, the original array's value will also change. This may seem counter-intuitive if you're new to programming until you understand that array's are reference types by nature. Before I go into a bit more detail, let me illustrate this with some code, first with strings and then with arrays:

Rails 6 with Bootstrap 4 and Fontawesome 5

Starting a new Rails 6 project with Bootstrap 4 and Fontawesome 5 Background So a few things have changed with the release of Rails 6, like Webpacker now being the default Javascript compiler. While Sprockets (Rails 5 default) and Webpacker can be used side-by-side, I'll be using Webpacker exclusively for Bootstrap and JavaScript. I won't be adding Bootstrap from a gem, but rather add custom Javascript and CSS via Webpacker.

Markdown Syntax Guide

This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. A big shout-out to the various Hugo authors who made this demo possible.