makandra Curriculum

makandra offers an 8 month paid trainee program 🇩🇪 for junior developers that are looking to start a professional career in...

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

Important wkhtmltopdf is deprecated and shouldn't be used anymore. Please consider switching to another tool We can install wkhtmltopdf...

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

makandracards.com

With the new unpoly client side templates (available since 3.10) there's another way to substitute the ids of inserted...

Prevent the restart of daemons from Debian package upgrades. Proper written postinstall scripts for Debian packages utilize deb-systemd-invoke...

For Selenium tests, your browser starts in your local timezone, or whatever your system's environment specifies. This is usually...

developer.mozilla.org

Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...

DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...

ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...

Method delegation in Rails can help you to keep your code organized and avoid deep call chains (law of demeter...

haml.info

Haml renders HTML with indentation reflecting the nesting level of elements. When it comes to white-space preserving content, this...

The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...

When debugging slow SQL queries, it’s helpful to understand the database engine's query plan. Whenever you execute a...

Rails wraps your parameters into an interface called StrongParameters. In most cases, your form submits your data in a nested...

makandra dev
impactahead.com

Also see the list of IRB commands. Switching the context Changes the "default receiver" of expressions. Can be used to...

In FactoryBot factories, Rails' file_fixture is not available by default. To enable it, include a support module from rspec...

evilmartians.com

Some key highlights and points from the linked article TestProf II: Factory therapy for your Ruby tests. The Problem with...

Rails slightly changed the fragment cache implementation from Rails 7.0 to Rails 7.1. Unfortunately, this is incompatible with how Haml...

developer.mozilla.org

Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...

blog.saeloun.com

Rails' fragment caching caches subtrees of an HTML document tree. While constructing that tree though, it can be really hard...

masilotti.com

Slow test suites are a major pain point in projects, often due to RSpec and FactoryBot. Although minitest and fixtures...

github.com

When handling nested hashes the RSpec output is often hard to read. Here the gem super_diff could help.