Blog

Page 536 of my articles, tutorials, and thoughts

Latest Articles

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

Cover Image for Why use Ruby"s attr_accessor, attr_reader and attr_writer?
attributes

Why use Ruby"s attr_accessor, attr_reader and attr_writer?

Published on September 2, 2023

## Are you curious about Ruby's attr_accessor, attr_reader, and attr_writer? šŸ¤” If you're new to Ruby or just starting to explore its features, you might have come across the mystifying methods `attr_accessor`, `attr_reader`, and `attr_writer`. šŸ¤” Fear n

Cover Image for Should Gemfile.lock be included in .gitignore?

Should Gemfile.lock be included in .gitignore?

Published on September 2, 2023

# Should Gemfile.lock be included in .gitignore? šŸ”’ So you're new to bundler and wondering what to do with that mysterious `Gemfile.lock` file, huh? Well, you're in the right place! šŸŽ‰ Let's dive into this common question and find out the best approach fo

Cover Image for What does map(&:name) mean in Ruby?
operatorsparameter-passingsyntax

What does map(&:name) mean in Ruby?

Published on September 2, 2023

šŸ“šŸ’”**Map(&:name) in Ruby: A Simple Guide to Understanding** šŸ¤”šŸ’Ž Do you ever come across unfamiliar symbols or syntax while reading code and wonder what they mean? šŸ¤”āœØ Well, you're in luck! Today, we're going to demystify one such code snippet: `map(&:na

Cover Image for What"s the difference between equal?, eql?, ===, and ==?
comparisonequalityoperators

What"s the difference between equal?, eql?, ===, and ==?

Published on September 2, 2023

# The Ultimate Guide to Ruby Equality Signs: equal?, eql?, ===, and ==? If you've ever found yourself scratching your head over the numerous equality signs in Ruby, you're not alone! The question of "What's the difference between `equal?`, `eql?`, `===`,

Cover Image for Ruby: kind_of? vs. instance_of? vs. is_a?
inheritanceintrospection

Ruby: kind_of? vs. instance_of? vs. is_a?

Published on September 2, 2023

šŸ“ **Ruby: kind_of? vs. instance_of? vs. is_a?** So, you're diving into the world of Ruby and you've come across these three methods: kind_of?, instance_of?, and is_a?. šŸ˜• You may be scratching your head and wondering, "What's the difference? When should