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...
Understand how asynchronous JavaScript works: Read Henning's presentation about asynchronous Javascript (there's also a German video presentation...
The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...
In this card we will learn to write code that scales with a large number of database records. We will...
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...
This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...
Some insight into how browser rendering engines work. The article shows how the way you manipulate styles (and the DOM...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...
One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...
docopt helps you define interface for your command-line app, and automatically generate parser for it. docopt is based on...
I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...
When you do something like this in your code: def var_value @var ||= some_expensive_calculation end
If you're still working on ruby 1.8, you should know that using SimpleDelegator is often prohibitively slow. I have...