I recently had the problem that embedded code boxes crashed my layout. It turned out that pres break out of...
tl;dr With ES2021 you now can use str.replaceAll(), Promise.any(), logical assignment operators, numeric separators and WeakRef on all major...
Code quality can be measured in four levels: (Working code) Reliable code (minimum) Readable code (ok for short-lived code...
Sometimes you will need an input field which wraps content and grows in height as soon as content gets longer...
RSpec's let allows you to super into "outside" definitions, in parent contexts. Example: describe '#save' do subject { described_class.new(attributes...
To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...
Im DevOps Bereich bist du insbesondere damit beschäftigt Infrastruktur zu bauen und zu betreiben. Weil man große Infrastukturen nur schwer...
Wir arbeiten bei makandra alle auf Linux-Betriebssystemen und bedienen im DevOps- & Cloud-Bereich primär Kunden, die ebenfalls auf Linux...
This StackOverflow question about nested function definitions in Ruby imparts a good understanding of Ruby's def.
Building application assets with esbuild is the new way to do it, and it's great, especially in combination with...
Attaching files to a field that is handled by Carrierwave uploaders (or maybe any other attachment solution for Rails) in...
You want to deploy new features but the latest commits are not ready for production? Then use git merge master...
When Capybara locates elements in the DOM, by default it allows only accessing visible elements -- when you are using a...
Resources RubyGuides: Mastering Ruby Regular Expressions Using regular expressions in JavaScript Testing regular expressions visually Regular Expressions: Quantifier modes...
Learn to create test data effectively using factories. Decouple tests by having each test start with an empty database...
Sometimes you need to access a dev server running on localhost from another machine that is not part of the...
TL;DR When using Cache-Control on a Rails application, make sure the Vary: Accept header is set.
Field error steps Spreewald's The...
...field should have an error and The...
...field should have the error...
...steps now...
Similar to the Webpack Bundle Analyzer, Chrome's new Lighthouse feature … … shows a visualisation of your JavaScript bundles. It's...
Modern versions of Capybara include a finder method #ancestor which allows you to find a parental element using CSS or...
Jasmine is a great way to unit test your JavaScript components without writing an expensive end-to-end test for...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...
Basic validations Read the Rails Guide on ActiveRecord Validations. You should have an overview which kinds of validations are built...