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

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

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

adactio.com

Web forms can be made much more usable with a few HTML attributes. Short summary: type: Tells browsers about the...

When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...

Rack::SteadyETag was a Rack middleware that generates the same default ETag for responses that only differ in XOR-masked...

Every Rails response has a default ETag header. In theory this would enable caching for multiple requests to the same...

Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...

Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...

makandra dev

Rails partials have a lot of "hidden" features and this card describes some non-obvious usages of Rails Partials.

Not all email clients support external images in all situations, e.g. an image within a link. In some cases, a...

Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...

tl;dr The Chrome DevTools are a neat collection of tools for the daily work as a web developer. If...

tl;dr In Chrome DevTools in the Elements tab or in Firefox in the Inspector tab you can right click...

You have uncommited changes (you can always check by using git status), which you want to discard.

workingdraft.de

The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different...