docs.ruby-lang.org

Use return to return from a method. return accepts a value that will be the return value of the...

before(:all) runs the block once before all of the examples. before(:each) runs the block once before each...

You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...

I often see the use of || to set a default value for a variable that might be nil, null or...

Nowadays it is fairly easy to intercept and modify mails globally before they are sent. All you have to do...

To easily opt out of notifications for a large number of Github repositories, go to https://github.com/watching.

Rails supports time zones, but there are several pitfalls. Most importantly because Time.now and Time.current are completely different things and...

stackoverflow.com

This card will show you how to use git rebase --onto without confusion. Use case: You've got two feature...

chris.beams.io

Separate subject from body with a blank line Limit the subject line to 50 characters (max. 72), include...

Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.

rspec.info

In modern default RSpec configurations, your tests are usually run in random order. This helps to detect "flickering" tests that...

makandra dev

This card compares patterns to store trees in a relation database like MySQL or PostgreSQL. Implementation examples are for the...

github.com

The parallel-gem is quite easy to use and can speed up rendering time if you want to render the...

blog.jetbrains.com

RubyMine allows bookmarking lines of code. This is super-helpful when working on a complex problem. I've been using...

Some pseudo-elements need to be addressed with vendor prefixes. E.g. ::selection is not supported by Firefox, you need to...

There are various ways to run external commands from within Ruby, but the most powerful ones are Open3.capture3 and Open3.popen3...

makandra dev
badssl.com

Website that offers lots of different kinds of HTTPS configurations, bad or good or complicated. They also offer a dashboard...

evilmartians.com

Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...

We generally use multiple application servers (at least two) and you have to search on all of them if you...

First find the reference for the entry you want through looking at the stash: $ git stash list stash@{0}: WIP...

medium.freecodecamp.com

Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...

Sometimes huge refactorings or refactoring of core concepts of your application are necessary for being able to meet new requirements...

In general, you should not put a block element inside an inline element. So don't do this: text

This card tries to summarize by example the different uses of heredoc. In Ruby << vs. <<- vs. <<~ In Rails strip_heredoc...