ubuntu 22 yaml.h not found, when running bundle of a ruby on rails application.
This has worked for me to solve the aforementioned problem:
apt install libyaml-dev
Ruby on Rails naming conventions
Ruby on Rails, often referred to as Rails, follows a set of naming conventions to maintain consistency and readability in code. I generally like RoR conventions and follow them. Here's a summary of some key naming conventions in Ruby on Rails:
Class Names: Class names in Rails are typically in CamelCase (also known as PascalCase), starting with an uppercase letter. For example, User, ProductCategory, or OrderDetail.
Some notes on naming conventions
Singular or plural?
This can be a much larger conversation, really. In the Ruby on Rails (RoR) framework, what is plural and what is singular is very specific.
I'd like to additionally note, that since I apply Occam's Razor to everything, and simplify everything, then generally speaking my names are singular, because plularily can be removed. This helps me easier find names in the future.
A good-looking CSS-only chip
How to use scss (sass) with Drupal
In this article, I'm doing to talk about how I enabled my Drupal theme to have scss.
I'm on a mac, so these instructions are specifically for mac os x.
Drupal is a php framework. Sass is (somewhat surprisingly) a ruby program. While I am a ruby expert, I believe javascript is much closer to css than ruby is, so I'm expecting the scss compiler to be written in node.
In fact, this task has little to do with Drupal or PHP. We will be spending most of the time in a node environment.