makandra dev
thoughtbot.com

The linked article compares two approaches for writing CSS: A component library (like BEM) Utility classes (like Tailwind)

github.com

Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...

Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...

When loading a database dump created with pg_dump into your database, you might run into an error like

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

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

Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...

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

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

Here is an ES5 object literal with two string properties and a function property: let user = { firstName: 'Max', lastName: 'Muster...

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

Select2 is a fantastic library for advanced dropdown boxes, but it depends on jQuery. Alternatives Tom Select

makandra dev
select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...

makandra dev
github.com

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

Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.

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

github.com

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