In Rubocop you might notice the cop Style/CaseEquality for e.g. this example: def foo(expected, actual) expected === actual end
Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...
We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...
While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...
If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...
When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...
CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...
When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...
Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...
If you want to prevent that two processes run some code at the same time you can use the gem...
If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...
"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...
RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...
In a web application you sometimes have tasks that can not be processed during a request but need to go...
If you render markdown from user input, an attacker might be able to use this to inject javascript code into...
When an event listener on a DOM element throws an error, that error will be silenced and not interrupt your...
Running Cucumber tests while your cucumber.yml is 100% valid may still produce the following error. cucumber.yml was found, but could...
tl;dr Don't forget require 'English' if you use a named global such as $LAST_MATCH_INFO. Otherwise this...
betterspecs.org is a documentation on how to write better RSpec tests. Note that there are also other approaches like The...
We use the whenever gem to automatically update the crontab of the servers we deploy to. By default, whenever will...
One of the earliest pieces of wisdom we are given as programmers is to not write duplicate code: Don’t...
To make CSS rules dependent on the screen size, we use media queries: @media (max-width: 500px) { // rules for screen...
The linked GitHub repository is a bit like our "dev" cards deck, but groomed from a single person (Josh Branchaud...
With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...