Blog

Page 535 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Difference between a class and a module
classmodule

Difference between a class and a module

Published on September 2, 2023

# The Class vs. Module Dilemma: Decoding the Mystery! 💡 Are you feeling a little lost in the world of Ruby after coming from Java? 🤔 Don't worry, my friend! I've got your back. 😎 Let's unravel the enigma of classes and modules together! 🧩 ## The Basi

Cover Image for When to use RSpec let()?

When to use RSpec let()?

Published on September 2, 2023

# When to use RSpec `let()`? 🤔 When writing tests using RSpec, you might have come across the `let()` helper method and wondered what it does and when to use it. In this blog post, we'll dive into the differences between using `let()` and instance varia

Cover Image for Determining type of an object in ruby
types

Determining type of an object in ruby

Published on September 2, 2023

## Understanding Object Types in Ruby: A Complete Guide 🧐💎 Ever wondered how to determine the type of an object in Ruby? 🤔 Whether you're a Ruby newbie or a seasoned developer, it's always good to have a solid understanding of object types. Let's dive

Cover Image for How to find a min/max with Ruby

How to find a min/max with Ruby

Published on September 2, 2023

# 🧐 How to find a min/max with Ruby Are you looking for a way to find the minimum or maximum value between two numbers in Ruby? 🤔 Look no further! In this guide, I'll show you how to easily find the min and max values using built-in functions in Ruby. L

Cover Image for Tell Ruby Program to Wait some amount of time
sleep

Tell Ruby Program to Wait some amount of time

Published on September 2, 2023

## 🕒 How to make your Ruby program wait 🕒 So, you want to make your Ruby program pause for a moment and catch its breath before moving on to the next line of code? Well, you've come to the right place! In this blog post, we'll explore some easy solution

Cover Image for What is Ruby"s double-colon `::`?
operatorssyntax

What is Ruby"s double-colon `::`?

Published on September 2, 2023

# Ruby's Double-Colon (::): Unlocking the Secrets of Scope and Accessibility 🕵️‍♂️ Hey there, tech enthusiasts! 👋 Are you baffled by the mysterious and ever-present double-colon (::) in Ruby code? 🤔 Don't fret, because today we're going to delve into t

Cover Image for Ruby: What does "require: false" in Gemfile mean?

Ruby: What does "require: false" in Gemfile mean?

Published on September 2, 2023

# Ruby: What does 'require: false' in Gemfile mean? 🧐 So, you're working on a Ruby project and you stumble upon a line like this in your Gemfile: ```ruby gem 'whenever', require: false ``` Naturally, you might think, "Does this mean the gem needs to be

Cover Image for What is the difference between include and extend in Ruby?
includemodule

What is the difference between include and extend in Ruby?

Published on September 2, 2023

# Include vs Extend: Demystifying Ruby Mixins <p>🤔 Just getting my head around Ruby metaprogramming. The mixin/modules always manage to confuse me. </p> <p>So, what is the difference between include and extend in Ruby? Let's break it down! 🕵️‍♀️</p> #

Cover Image for Is there a "do ... while" loop in Ruby?
loops

Is there a "do ... while" loop in Ruby?

Published on September 2, 2023

# Is there a "do ... while" loop in Ruby? You're not alone! Many developers hope to find a "do ... while" loop in Ruby that can simplify their code. This loop structure allows you to execute a block of code at least once and then continue as long as a cer

Cover Image for How can I update Ruby version 2.0.0 to the latest version in Mac OS X v10.10 (Yosemite)?
version

How can I update Ruby version 2.0.0 to the latest version in Mac OS X v10.10 (Yosemite)?

Published on September 2, 2023

# How to Update Ruby Version on Mac OS X v10.10 (Yosemite) 👋 Hey there, Mac user! Are you stuck with an outdated Ruby version on your Yosemite operating system? 🌀 Don't worry, I've got your back! In this blog post, I'll guide you through the process of