When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...

ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...

If you want to get the path of a file relative to another, you can use the expand_path method...

CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...

A flat folder structure can be cool if you have only a few folders but can be painful for huge...

Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.

This error occurs when passing an object instead of a string to Jasmine's describe(): # Bad describe(HoverClass, function() {...

After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...

Sometimes new versions of software introduce new bugs. In this case you might not want the package to upgrade on...

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...

makandra dev
developers.google.com

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

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

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

makandra dev

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

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. Some libraries may still reflect on the column...