The Web Animations API has great browser support, and you should be using it to animate DOM elements from JavaScript...

rspec.info

...Also see here for further examples. Please note: Usually it is preferrable to test behaviour, not method calls. Since the behaviour of both validators is thoroughly tested in their own...

flowchart LR /page1--301-->/page2 /page2--301-->/page3 This means that /page2 will become unusable as its own page. Note that a 301 with an explicit expiry via Cache...

When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can't be found with an SQL query, do not print...

...Also browsers will cache the redirect forever. Appropriate status code for maintenance pages The best HTTP status code for your maintenance page is "503 Service Unavailable": The server is currently...

Today I stumbled across a pretty harmless-looking query in our application which turned out to be pretty harmful and...

...you are also okay, in this case the JOIN might have slightly better performance...

So you are comparing two Time objects in an RSpec example, and they are not equal, although they look equal...

moncefbelyamani.com

The linked article points out that COUNT queries might be unexpectedly slow in PostgreSQL. If you just need to know...

jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...

Ruby has two different ways to match the start and the end of a text: ^ (Start of line) and $ (End...

github.com

ActiveType::Object inherits from ActiveRecod::Base and is designed to behave like an ActiveRecord Object, just without the database persistence. Don't remove any of the default behavior of...

Be careful when using buttons without a type attribute, since browsers will consider them the default submit button of a...

Don't sum up columns with + in a sql-query if NULL-Values can be present. MySQL and PostgreSQL cannot...

blog.jetbrains.com

RubyMine allows bookmarking lines of code. This is super-helpful when working on a complex problem. I've been using...

When an object is created / updated, various callbacks are executed in this order: before_validation after_validation before_save

github.com

Internet Explorer until version 9 has some limitations when parsing CSS files Summarized, these are: Up to 31 CSS files...

In tests, it is sometimes useful to create records with specific ids. On PostgreSQL this can cause problems: Usually, PostgreSQL...

thejh.net

What you copy may not be what you see in the browser. Here is an online tool to determine the...

This seems to be obvious, but you can expect Rake tasks to be called in RSpec. it 'deletes all Users...

On the Rails console, assigning an object to a variable can lead to this strange error (without stacktrace): irb > recipient...

...found in the official docs, this works just fine. describe Facebook::Post do it_behaves_like :time_series end shared_examples_for :time_series do # shared example code

If you use Selenium and Launchy to open web pages, you might run into an error saying "Your Firefox profile...

stackoverflow.com

One really simple way to check whether JavaScript Sentry integration was successful (raven-js or @sentry/browser), is to create an...