unpoly.com

Quick guide for frequently used compiler selector patterns of Unpoly. 1. BEM Component Pattern When: Reusable UI components with multiple...

When RSpec sets out to print any given object to the console, it will never print more than 200 characters...

GoodJob and ActiveJob rescue exceptions internally, preventing exception_notification from triggering. This can cause silent job failures.To get notified, subscribe...

prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...

If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...

Most of the time, when you are interested in any log output, you see the logs directly on your console...

developer.mozilla.org

The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...

RSpec examples can get quite long, especially in feature specs. This makes them hard to read & understand. Also, when executing...

Modern CSS offers the field-sizing property to allow elements to automatically adjust size (width and/or height) to fit their...

When you repeat complex assertions in your tests multiple times, it might be a good idea to extract a custom...

We usually ship applications that self-host webfonts to comply with GDPR. Many popular web fonts are available as NPM...

Say you wrap your index view in a form to apply different filters like pagination or a search query. On...

To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...

The currentColor CSS keyword references the current text color and can be used to apply an element's text color...

When you want to filter records in a model where a string column roughly matches a given term, you can...

You can check the maximum client Redis database size in Sidekiq with this command. Sidekiq.redis { |redis| puts redis.info.fetch('maxmemory_human...

Orca is a Linux screen reader. Since it is part of the GNOME project it should come preinstalled with Ubuntu...

developer.mozilla.org

Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...

DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...

For long running scripts it is useful to show a indicator for the progress in the terminal. Alternatively you can...

PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...

There are several ways to run a single spec. I usually copy the spec file path with the line number...

haml.info

Haml renders HTML with indentation reflecting the nesting level of elements. When it comes to white-space preserving content, this...

The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...