Sometimes your code has long lines: describe 'foo' do describe 'bar' do really_long_line_really_long_line_really_long...
A collection of code snippets which return a boolean value for a regex comparison. regexp.match?(string) # Recommended for Ruby >= 2.4...
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...
Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...
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...
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...
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...
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...
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...
If you want to find the commits that touched a specific text in a file, use git log -S 'text...
Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...
Good article about what "gamma correction" means for color processing, and what "sRGB" actually means. You probably do not need...
When you are calling Bundler from your shell scripts, you might find it useful that a failed bundle call returns...
ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...
There is no build in functionally in jQuery and Prototype to extract params from a url. You can use this...
Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...
Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...