When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
You can define methods using def or define_method. In the real world, there is no performance difference.
Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...
Processes in Linux might be put into Swap ("virtual memory") occasionally. Even parts of a single process might be removed...
Helix allows you to implement performance-critical code of your Ruby app in Rust, without requiring glue code to bridge...
Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...
You login to a Linux server with a performance issue: what do you check in the first minute? uptime
rack-mini-profiler is a powerful Swiss army knife for Rack app performance. Measure SQL queries, memory allocation and CPU...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
The nokogiri gem provides different packages for several platforms. Each platform-specific variant ships pre-built binaries of libxml2, e.g...
A very informative and interesting presentation about browsing performance, looking at efforts Google Chrome takes to increase it.
Table of contents of the linked article: What are Web Fonts? Advantages of Web Fonts Disadvantages of Web Fonts
Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...
There are many solutions, but a very concise one is this: hash.merge!(hash) do |key, old_value, new_value|
Web fonts are great. They are also be really bad for front-end performance because they block rendering. You may...
Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...
As the web is being used for more and more tasks, expectations rise. Not only should web pages offer rich...
The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...
HTTP/2 will make our applications faster, simpler, and more robust—a rare combination—by allowing us to undo many of...
When you want to UPDATE a table with information from an associated table, you can JOIN the associated table into...
Several Rails migration methods accept index: true as an option to create an index. In some cases (like #add_column...
dmesg shows the kernel ring buffer containing low-level system messages. Per default, dmesg shows a timestamp:
In RSpec you can tag examples or example groups with any tags you like simply by saying describe ReportCreator, slow...
See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...