makandracards.com

If you get an error message like this: You have already activated some-gem 1.2.3, but your Gemfile requires some...

tl;dr With ES2021 you now can use str.replaceAll(), Promise.any(), logical assignment operators, numeric separators and WeakRef on all major...

makandra dev

You'll need openssl-3 or newer for servers running 22.04 Ruby version 3.1 uses by default the gem openssl...

There is a way to use multiple databases in Rails. You may have asked yourself how you're able to...

The gemspec for gems allows to add metadata to your gem, some of which have a special meaning and are...

When you need information about a gem (like version(s) or install path(s)), you can use the gem binary...

github.com

ruby-warning adds custom processing for warnings, including the ability to ignore specific warning messages, ignore warnings in specific files/directories...

Redis.current will be removed without replacement in redis-rb 5.0. Version 4.6.0 adds deprecation warnings for Redis.current and Redis.current=: `Redis.current...

makandra dev

To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...

This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...

Im DevOps Bereich bist du insbesondere damit beschäftigt Infrastruktur zu bauen und zu betreiben. Weil man große Infrastukturen nur schwer...

DevOps Curriculum

makandra bietet ein bezahltes Trainee-Programm für DevOps / Cloud-Engineers: http://start.makandra.de Wir arbeiten für unsere Kunden häufig als Infrastruktur...

makandra dev
stackoverflow.com

This StackOverflow question about nested function definitions in Ruby imparts a good understanding of Ruby's def.

Jasmine is a great tool to unit test your JavaScript components without writing an expensive end-to-end test for...

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

makandra dev
github.com

Rack::SteadyETag is a Rack middleware that generates the same default ETag for responses that only differ in CSRF tokens...

Jasmine is a great way to unit test your JavaScript components without writing an expensive end-to-end test for...

Within development and test environments, Rails is usually configured to show a detailed debug page instead of 404s. However, there...

This RailsCast demonstrated a very convenient method to activate VCR for a spec by simply tagging it with :vcr.

You want to use fields in your applications. However, your desktop users may encounter some weird quirks: Aside from allowing...

makandra dev

The gem better_errors offers a detailed error page with an interactive REPL for better debugging. I had the issue...

Ruby lets you re-use existing RegExp objects by interpolating it into new patterns: locales_pattern = /de|en|fr|es/i...

The RSpec matcher tests if two HTML fragments are equivalent. Equivalency means: Whitespace is ignored Types of attribute quotes are...