I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...
Some rubygems come in platform-specific versions (i.e. "x86_64-linux") in addition to the usual "ruby" platform. This is...
Debouncing a method call delays its execution until after a specified time has passed. If it's called again before...
I used two lab days to read the The framework field guide - Fundamentals, the first of a three part series...
...HTML elements can automatically start playing when the autoplay attribute is set on them. Except for when they can not...
Suppose you want to implement a publish/subscribe pattern in your Frontend application to react to data changes and events. First...
When you use native smooth scrolling there is no built-in method to detect the end of the scrolling animation...
One-line takeaways Don’t override native browser (or OS) shortcuts. Support standard shortcuts that don’t contradict the previous...
Ruby includes many standard gems that are bundled into the Ruby installation. Here is an example for the gem strscan...
Event delegation is a pattern where a container element has a single event listener that handles events for all descendants...
Often people need links which are not linked directly, but should trigger execution of JavaScript. ❌ Bad workarounds
Table of content for the linked article: 1. The `loading=lazy` attribute 2. Email, call, and SMS links
On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...
After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...
# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...
Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.
In case you want to use pry with an older version of Ruby, you can try the following configurations.
A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...
Embedding videos on a website is very easy, add a tag to your source code and it just works...
Browsers come with a set of built-in elements like or . When we need a new component not covered by...
The gem json fails to install for Ruby 2.5 if you use a version equal or below 1.8.3.
jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...
See the attached link for a useful overview of modern (and classic) DOM API methods, like matches, contains, append, cssText...
This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects