unpoly.com

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

Performing COUNT(*) on large tables is slow. Sometimes you don’t need the exact number once results exceed a certain...

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

I had to modify the time for an application that I launch through Docker. Here is an approach that worked...

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

There's a method Integer() defined on Kernel, that typecasts everything into an Integer. Integer("2") # 2 Integer("foo") # Invalid...

makandra dev

Rails log files rotate automatically when they reach approx. 100MB: $ ls -lh log/ -rw-r--r-- 1 user group 55M...

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

GitLab has a RubyMine plugin that enables you to review and process merge requests within RubyMine! Setup Open RubyMine settings...

developer.mozilla.org

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

SimpleForm comes with an option browser_validations which could be used to give fields that have a presence validation the...

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

api.rubyonrails.org

In Rails 7.2. the feature ActiveRecord.after_all_transactions_commit was added, for code that may run either inside or outside...

Frontend performance and user experience are orthogonal to feature development. If care is not taken, adding features usually degrades frontend...

The DB schema is the most important source of truth for your application and should be very self-explanatory. If...

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

Even if you don't make any beginner mistakes like N+1 queries or missing DB indices, some requests can...

tl;dr Set profile.password_manager_leak_detection to false in your Selenium Chrome options to disable password leak detection and...

github.com

Use these snippets when you want to measure yourself. Currently available: Core Web Vitals Largest Contentful Paint (LCP) Largest Contentful...

It can be hard to understand what causes a browser scroll smoothly or instantly. CSS, JavaScript and the browser settings...

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

The :nth-child pseudo class is commonly used for targeting elements based on their position within a parent container, for...

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