Rails is just…

Apr 27
2007 19:26 (Development, Ruby on Rails) · Русский (3,670 views)

Rails is just an interface to the memcached?

Cache the Hell out Everything
90% API Requests — cache them

Read the Scaling Twitter.

Testing mailers with RSpec

Apr 19
2007 07:42 (Development, RSpec, Ruby on Rails) · Русский (6,076 views)

Unfortunately, RSpec does not provide helpers for testing mailers like TestUnit. But it is easy to add them to your application, and here you could find code snippet for testing mailers.

Read the rest of entry »

Using sub-queries to avoid multiple DB requests in Rails

Apr 12
2007 08:12 (Development, MySQL, Ruby on Rails) · Русский (6,144 views)

When I worked on Best Tech Videos with Alexey Kovyrin, we faced a problem of filtering videos by category with selecting posts categories in the same query. It was easy to solve the problem, but there is one query optimization trick exists.

Read the rest of entry »

Sphinx Search Engine 0.9.7, Ruby Client API 0.3.0

Apr 05
2007 16:44 (Development, MySQL, RoR Plugins, Ruby on Rails) · Русский (6,140 views)

Sphinx Search EngineIt’s happened! We all waited for Sphinx update and finally Andrew Aksyonoff has released version 0.9.7 of his wonderful search engine (who does not know about it, look my previous posts here and here).

Read the rest of entry »

5 Things why I love RSpec

Mar 19
2007 09:31 (Development, RSpec, Ruby on Rails) · Русский (6,844 views)

RSpec provides a framework for writing what can be called executable specifications of program behavior. In this short post I want to explain why I use this framework in place of classic TestUnit library.

Read the rest of entry »

 
Copyright © 2005 - 2008, Dmytro Shteflyuk