makandra dev
developers.google.com

Chrome has a built-in utility to check performance and accessibility (and more) of your web app: Lighthouse.

In interactive commands, Git allows the user to provide one-letter input with a single key without hitting enter (docs...

When writing some logs to a file, that don't use Ruby's logger utility, it is often useful to...

Here is an example with the --tags option. You need to wrap them inside --cucumber-options option of parallel_cucumber...

Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...

makandra dev

If you have a Ruby Pathname, you can use the method :/ to append filepaths to it. With this method, Ruby...

makandra dev

We structure our CSS using the BEM pattern. Our naming convention for blocks, elements and modifiers has evolved over the...

I experienced a lot of issues with google chrome that made it almost impossible to work with it. Here are...

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...

makandra dev
github.com

grep is the go-to CLI tool to accomplish tasks like filtering large files for arbitrary keywords. When additional context...

If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...

developer.squareup.com

We're pleased to announce Ruby 3’s new language for type signatures, RBS. One of the long-stated goals...

makandra dev

4.0.0 2020-07-30 Compatible changes Improved documentation; README now includes command options. Improvement #90: geordi console, geordi deploy, geordi...

island94.org

GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...

We use Sentry to be informed about different kinds of issues. One of the key features is that you are...

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...

Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...

makandra dev
github.com

FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...

makandra dev

# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...

Let's say you want to merge the properties of two JavaScript objects: let a = { foo: 1, bar: 2 }

postgresql.org

TL;DR PostgreSQL handles Rails 4+ text and string columns the same. That said, there is still a semantic difference...

makandra dev

RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...