Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...
By default most exceptions in Rails will render a 500 error page and will create a new issue in your...
This is a checklist I use to work on issues. For this purpose I extracted several cards related to the...
Carrierwave's BaseUploader can have some validations that you can use by overriding a certain method, which's expected name...
To retrieve only unique combinations of the selected attributes: You can omit rows, where all selected columns are equal with...
Rails includes milliseconds in Time / DateTime objects when rendering them as JSON: JSON.parse(User.last.to_json)['created_at'] #=> "2001-01-01...
Let's assume that we have a model Movie that registers a callback function when a new instance of Movie...
When an object is created / updated, various callbacks are executed in this order: before_validation after_validation before_save
Bundler so far ignored the version specified under BUNDLED_WITH in the Gemfile.lock. This had two annoying consequences:
Timecop is a great gem to set the current time in tests. However, it is easy to introduce flakyness to...
Usually, design development starts with drafts, sketches and prototypes. These are reviewed, refined and iterated until the final design is...
In a Jasmine spec you want to spy on a function that is imported by the code under test. This...
By default subscript ( ) and superscript ( ) tags are styled with vertical-align: sub, respectively vertical-align: super by most browsers.
In esbuild, you usually import other files using relative paths: import './some-related-module' import `../../utils/some-utility-module` import `../../../css/some-css.sass` This is totally fine...
Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...
Jasmine specs that work with DOM elements often leave elements in the DOM after they're done. This will leak...
tl;dr In Chrome DevTools in the Layouts tab you have handy options to debug CSS Flexbox and Grid. Including...
While in CSS zero is usually referenced without specifying a unit (e.g. padding: 0), you must not use a unitless...
tl;dr The Chrome DevTools are a neat collection of tools for the daily work as a web developer. If...
tl;dr In Chrome DevTools in the Sources tab you can activate Event Listener Breakpoints for debugging events. Example
tl;dr In Chrome DevTools in the Elements tab or in Firefox in the Inspector tab you can right click...
Git allows you to set push options when pushing a branch to the remote. You can use this to build...
ActiveType::Object inherits from ActiveRecod::Base and is designed to behave like an ActiveRecord Object, just without the database...
If you're experiencing that your bundle install command fails with an error message like this, rubygems.org might...