...I want to point out that it has clear strengths, too. Pro Simple and beautiful interface. Outstandingly organized source code. Have never seen a JS library that was this structured...
...name ( by ) until it starts replacing into tags. Seriously. This is just horribly broken beyond repairs, so we do it ourselves. While the documentation states that allowedTags is processed upon...
...ETags. These ETags will never match what your application sees. You can disable this behavior through this directive: DeflateAlterETag NoChange
Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its...
When deploying code with Capistrano (depending on your configuration) at some point Capistrano tries to check out code from your...
This article describes how to reset MySQL's or MariaDB's root password on your workstation. It's meant for...
...Most specs don't require you to define a class. Usually, you test the behavior of an existing class from your application. A common use case ist testing modules which...
...are included elsewhere. Your module may behave differently depending on the including class, be parameterized (like with Modularity), or just offer an API (e.g. has_defaults) that you want to...
...failed apparently. Here is a traceroute to 1.2.3.4: HOST: foo.example.com Loss% Snt Last Avg Best Wrst StDev...
When projects run for many years, they require special regular maintenance to stay fresh. This kind of maintenance is usually...
Yesterday, Rails fixed a security issue (CVE-2014-3514) in Rails 4+. It was possible to use .where...
...has attributes like these: class User < ApplicationRecord has_many :posts end class Post < ApplicationRecord belongs_to :user validates :user, presence: true # Default for belongs_to on Rails 5+ end
tl;dr git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for...
...use this kind of call if your code is run by a background job. Better, don't use it at all. Exception Notifier 2.6 and 3 ExceptionNotifier::Notifier.background_exception_notification...
RubyMine comes with a nice way to grep through your project's files: The finder (ctrl + shift + f). Don't...
...view vouches for it to be safe. Don't do it. There is a better way. You might also be tempted to split your text into multiple fragments, like so...
Don't forget users with a slow internet connection. Not everyone is sitting behind a FTTH cable with warp speed. Throttle your browser's internet connection (e.g. in the...
...Chrome DevTools network panel) to feel how your app behaves. If you're using Unpoly, show a loading state while requests are loading. If you cannot implement this for every...
Like you know from "How to tell ActiveRecord how to preload associations (either JOINs or separate queries)", you can tell...
Since Ruby 3.2.0 you can measure coverage support for eval statements and support has been added for the simplecov gem...
When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips
...nested form. See ActiveRecord: When aggregating nested children, always exclude children marked for destruction. Best practice example Here we will use what we learned above in order to create a...
This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...
Under Settings / Appearance you can uncheck a box Animate windows. This will change your life. This setting seems to not...
Using git rebase can be painful but luckily you can resort to cheating with git reset and committing anew.
When a user shares your content, a snippet with title, image, link and description appears in her timeline. By default...
You can use RSpec::Matchers.define_negated_matcher to define a negated version of an existing matcher. This is particularly useful...