Caching!
Caching, in the web application world, is the art of taking a processed web page (or part of a webpage), and storing it in a temporary location. If another user requests this same webpage, then we can serve up the cached version.
Loading up a cached webpage can not only save us from having to do [...]
Read Full Post »
log rotation in Ruby on Rails is as simple as an extra line in your config/environment.rb file:RAILS_DEFAULT_LOGGER = Logger.new(”#{RAILS_ROOT}/log/#{RAILS_ENV}.log”, 20, 10.megabyte)
I put this line right BEFORE the Rails::Initializer.The above line will automatically rotate your logs when they hit 10 megabytes, and it will keep the 20 most recent logfiles.
Read Full Post »
rcov is a code coverage tool for Ruby. It is commonly used for viewing overall test coverage of target code. It features:
fast execution: 20-300 times faster than previous tools
multiple analysis modes: standard, bogo-profile, “intentional testing”, dependency analysis…
detection of uncovered code introduced since the last run (”differential code coverage”
fairly accurate coverage information through code linkage inference [...]
Read Full Post »