makandra dev

Using git fixup helps you to speed up appending changes further back in the git history of your feature branch...

In case you want to use pry with an older version of Ruby, you can try the following configurations.

To make CSS rules dependent on the screen size, we use media queries: @media (max-width: 500px) { // rules for screen...

Ruby and Rails have several methods for creating a new object that looks like another: clone, dup, deep_dup. When...

...project= is deprecated with no replacement. It will be removed on or after 2019-12...

millarian.com

In Active Record you can use named bindings in where-conditions. This helps you to make your code more readable...

Test-Driven Development (TDD) in its most dogmatic form (red-green-refactor in micro-iterations) can be tedious. It does...

Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...

"Everything in Ruby is an object". This is also true for nested hashes and arrays. If you copy a hash...

A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...

Chrome allows you to throttle the Network and the CPU. Both settings are useful to measure the performance of you...

When we write a form with date fields, we often use graphical data picker like Rome to get a consistent...

Turns out, Cucumber::MultilineArgument::DataTable#diff! caches some stuff. Code of the following form will not work as intended:

github.com

Because colors improve readability so much. On Ubuntu 18.04 you can install it with sudo apt install grc

By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...

makandra dev

Code comments allow for adding human readable text right next to the code: notes for other developers, and for your...

engineering.wework.com

Ruby's Net::HTTP library repeats a failing request once, as long as it deems it idempotent (GET, HEAD etc...

developer.mozilla.org

Heads up: transparent is not a real color, but black with 0% opacity. In transparent gradients, this adds some gray...

In applications without a sign-up, user accounts are usually created by an admin. This imposes two challenges:

To find an input with the type hidden, you need to specify the type hidden: find_field('Some label', type...

makandra dev

If you need to test some HTML, e.g. an embed code, you can use RubyMine's "scratch files":

You can use the CSS property mask-image to define an "alpha channel" for an element. E.g. to let an...

TLS/SSL certificates are often used for HTTPS traffic. Occasionally a service may also use their TLS certificate to support public...