Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...
Web technology is a broad field and you cannot be an expert in all aspects. However, it is useful to...
Just like we use gems on the server, we use third party JavaScript libraries in the browser. These typically provide...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
This error message may occur when rspec gets loaded by rake, e.g. when you migrate the test database. NoMethodError: undefined...
Reminder of what you can do with Geordi. Note: If you alias Geordi to something short like g, running commands...
First find the reference for the entry you want through looking at the stash: $ git stash list stash@{0}: WIP...
Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...
TLDR: A function is hard to use when it sometimes returns a promise and sometimes throws an exception. When writing...
A comprehensive introduction to sending HTML emails. Intro: HTML email: Two words that, when combined, brings tears to a developer...
Exercise 1: XML On the start page of your Movie DB, show the title of a random movie that is...
Adopting legacy Rails apps Talk to your mentor about how we're approaching applications that are either old or abandoned...
So you're getting an error like this: undefined method `activate_bin_path' for Gem:Module (NoMethodError)
Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...
So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...
Building plain text emails with an .erb template doesn't allow you to indent code like you normally do in...
This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...
TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...
This method will remove automatically installed packages that no other packages depend on any more. This, of course...
When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...
Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...
Knowing when to refactor Just feeling like refactoring is not a good reason to do it. Make an educated decision...
When working with custom transactions and use ActiveRecord::Rollback you may encounter unexpected behaviour if you try to roll back...
You can have a command repeatedly executed and the output displayed. This is useful e.g. for monitoring file system changes...