In Rails 7.1 it has become possible to annotate partials with the locals they expect: # partial _user_name.erb <%# locals: (user:) %>

This card describes four variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly:

This card describes different flavors for concatting HTML safe strings in a helper method in Rails. You might want to...

...HTML elements can automatically start playing when the autoplay attribute is set on them. Except for when they can not...

Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...

Note Using rem only ever makes sense when the root font size is dynamic, i.e. you leave control to the...

developer.mozilla.org

A common cause of non-accessible web pages are elements that were made interactive via JavaScript but cannot be focused...

Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...

makandra dev

Usually our code lives on GitLab, therefore our documentation for CI testing is extensive in this environment. If you are...

Tested on Ubunut 22.04 1. Opener script Create a file ~/.local/bin/coverage_zip_opener with: #!/bin/bash tmp_folder="/tmp/coverage-report-opener" if [ -z "$1" ]

developer.mozilla.org

Today I learned that you can animate HTML elements using the Web Animation API's method .animate(keyframes, options) (which...

Make sure that you use the correct property when editing an HTML attribute. Using innerHTML with unsafe arguments makes your...

Creating Nagios Config with puppet Let's have a look at the classic way of managing Nagios configuration with exported...

Every modern Rails app should have a Content Security Policy enabled. Very compatible default The following "default" is a minimal...

thegnar.com

View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...

The recommended additional setup of the spreewald gem, a useful set of cucumber steps, includes adding a file for defining...

Browsers can auto fill-in one time codes if advised. Use it like this: Demo: https://twitter.com/sulco/status/1320700982943223808 Browser support...

github.com

For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...

If you want to collapse/expand elements with dynamic content (and thus unknown height), you can not transition between height: 0...

TL;DR: Grid elements have min-width: auto in a 1fr column, which may lead to overflows. With minmax(0...

Note: You won't need this for single lines of text. In this case it is better to just use...

Using querySelector or querySelectorAll in JavaScript, you can easily find descendants of a node that match a given selector.

makandra dev

We have a long-standing checklist for merge requests. However, it hardly matches the intricate requirements for design. This checklist...

Code splitting is a feature of esbuild that can keep huge libraries out of the main bundle. How code splitting...