Blog

Page 595 of my articles, tutorials, and thoughts

Latest Articles

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

Cover Image for When monkey patching an instance method, can you call the overridden method from the new implementation?

When monkey patching an instance method, can you call the overridden method from the new implementation?

Published on September 2, 2023

🐒 Monkey Patching: Can You Call the Overridden Method? 📞🔧 👋 Hey there tech enthusiasts! 👋 Have you ever found yourself in a situation where you needed to override (or monkey patch) a method in a class, but still wanted to call the original (overridd

Cover Image for Ruby: Can I write multi-line string with no concatenation?

Ruby: Can I write multi-line string with no concatenation?

Published on September 2, 2023

# 🌟 Writing Multi-Line Strings in Ruby with No Concatenation 🌟 Are you tired of messy and hard-to-read code when dealing with multi-line strings in Ruby? Concatenating strings can get tedious and make your code look cluttered. But fear not! In this blog

Cover Image for What is the difference between include and require in Ruby?
classincludemodule

What is the difference between include and require in Ruby?

Published on September 2, 2023

# Understanding the Difference between `include` and `require` in Ruby 🤔 So you want to know the difference between `include` and `require` in Ruby? Trust me, you're not alone! It's a common question that often confuses even experienced Ruby developers.

Cover Image for How to reverse a "rails generate"
ruby-on-rails-3

How to reverse a "rails generate"

Published on September 2, 2023

# How to Reverse a 'rails generate' and Clean Up Your Mess 😅 🚂🔀🔄🔧 So, you've generated some files using `rails generate` and now you're feeling a bit overwhelmed with all the changes they made. Fear not! In this blog post, we will address the common

Cover Image for How to Uninstall RVM?

How to Uninstall RVM?

Published on September 2, 2023

**🔥 The Ultimate Guide to Uninstalling RVM 🔥** So, you're in a bit of a pickle with your RVM installation on Ubuntu 9.10, huh? Don't fret! We've got your back. In this guide, we'll walk you through the steps to uninstall RVM like a pro. Whether you simp

Blog | Matheus Mello