In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...

Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...

It is quite easy to migrate from CoffeeScript to ES6. You can use decaffeinate to convert your CoffeeScript source to...

Over the years we have tried several solution to have vector icons in our applications. There are many ways to...

To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...

Download buttons can be difficult to test, especially with Selenium. Depending on browser, user settings and response headers, one of...

We're always striving towards keeping our website's JavaScript as small as possible. If you're using webpack(er...

makandra dev

TL;DR Most web applications do not require action on this. SameSite=None (old browser default) will continue to work...

To avoid multiple versions of a package, you can manually maintain a resolutions section in your package.json. We recommend you...

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...

Fixed bugs where calling valid? would change the record's state.

Here is how to make Rome datepicker look like the rest of your Bootstrap 4 application. Rome comes with very...

Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...

RSpec >= 3.3 added aggregate_failures, which allows multiple failures in an example and list them all, rather than aborting on...

github.com

See the attached link for a useful overview of modern (and classic) DOM API methods, like matches, contains, append, cssText...

makandra dev

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects

If your app does not need to support IE11, you can use most ES6 features without a build step. Just...

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...

When projects run for many years, they require special regular maintenance to stay fresh. This kind of maintenance is usually...

Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle

api.jquery.com

jQuery's removeClass removes the given class string from an element collection. If you want to remove multiple/unknown classes matching...

github.com

This repository was created with the intention of helping developers master their concepts in JavaScript. It is not a requirement...

developers.google.com

Mobile Chrome and Safari support the "web share API" which allow you to use the native share functionality of an...