makandra offers an 8 month paid trainee program 🇩🇪 for junior developers that are looking to start a professional career in...
I recently had to update a few selective npm libraries in a project that uses pnpm to apply a CVE...
Sometimes you have a maintenance script where you want to iterate over all ActiveRecord models. Rails provides this out of...
When creating a database table for a join model without further importance, you can use Rails' create_join_table:
When you query the browser for DOM elements, there are some footguns you should know about. Some lists are synchronized...
Finding changes When you're looking for a specific change in Git, there are multiple axes you can choose:
When you replace parts of the DOM with new HTML, using .innerHTML = newHtml is usually the simplest and fastest option...
Most of the time, it's a good default to add a unique index on the foreign key when using...
Full-text search can reach its limits in terms of flexibility and performance. In such cases, trigram indexes (pg_trgm...
Quick guide for frequently used compiler selector patterns of Unpoly. 1. BEM Component Pattern When: Reusable UI components with multiple...
Flag: --compress=zstd
The linked tool can be used to scan your CI/CD workflows for potential security issues and suboptimal defaults if they...
In Rails 8 the behavior of the rails db:migrate command has changed for fresh databases (see PR #52830).
This release adds asynchronous compilers and many other features requested by the community. We also fixed a number of performance...
I had to modify the time for an application that I launch through Docker. Here is an approach that worked...
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...
Coverage reports are rarely useful if you run only small parts of your test suite. Just do not load SimpleCov...
SimpleForm comes with an option browser_validations which could be used to give fields that have a presence validation the...
ActiveRecord computes table names of model classes, and results are usually just like you'd expect. Adding a prefix for...
In Rails 7.2. the feature ActiveRecord.after_all_transactions_commit was added, for code that may run either inside or outside...
In Rails 7.2 the new default for config.action_dispatch.show_exceptions is rescuable. :rescuable: It will show a Rails error page in...
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...