Greg Molnar has written a neat article about creating a single-file Rails app. This is not meant for production...
When working with feature branches, stale branches pile up over time. It's best to remove them right after merge...
While working on a Rails application, your code base will grow a collection of different file types including: Ruby (business...
Beim schreiben von Scripts ist es nützlich Tests zu schreiben um bei Änderungen nicht alles nochmals manuell testen zu müssen...
Bei Automatisierungsaufgaben kannst du dich nicht immer auf fertige Tools verlassen. Häufig musst du eine Schnittstelle zu einem bestehenden System...
Instead of using Puppet exported resources you can use the puppetdb_query feature. This can result in more complex code...
You can use the code below to check whether the browser can make connections to the current site: await isOnline...
I recently wanted to add a model for address information but also wanted to add a unique index to those...
Testing file download links in an end-to-end test can be painful, especially with Selenium. The attached download_helpers.rb provides...
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...