Best Tech Videos: Great Changes Coming

May 20
2007 21:50 (Development, Internet, Ruby on Rails) · Русский (6,283 views)

Best Tech Videos: Logo

During the last few months we (I and Alexey Kovyrin) have been working on a major Best Tech Videos site platform update. If you have not seen it before — it is time to take a look at it because really soon everything will change. I don’t mean that site idea would change (you would be able to find there the best tech videos), but usability, information availability and many small but useful things will be changed for good.

Read the rest of entry »

Hi, I’m Ruby on Rails

May 14
2007 18:51 (Internet, Ruby on Rails) · Русский (7,629 views)

You definitely should watch it. Gregg Pollack and Jason Seifer from RailsEnvy present:

Part 1. Ruby on Rails vs Java

Read the rest of entry »

Generating permalink from string in Ruby

May 14
2007 18:27 (Ruby on Rails) · Русский (12,388 views)

If you are creating Ruby on Rails application like a blog, you most probably want to generate URLs using post titles. It’s good practice, because search engines like keywords in URL, and it looks more human-readable. Just compare: http://example.com/posts/10 and http://example.com/posts/generating-permalinks-from-string (yeah, it’s long, but self-descriptive). Anyways, this is small post about converting a title to a permalink.

Read the rest of entry »

Useful helpers for RSpec mocks

May 05
2007 02:38 (Development, RSpec, Ruby on Rails) · Русский (12,245 views)

RSpec has great feature — mock objects (mocks). In a few words: mock object imitates behavior of the object, which used by the tested methods. And simple example immediately:

describe UserHelper
  it 'should generate correct link to user profile in user_link' do
    @user = mock('User')
    @user.stub!(:id, 10)
    @user.stub!(:new_record?, false)
    @user.stub!(:preferred_name, 'Dmytro S.')
    @user.stub!(:full_name, 'Dmytro Shteflyuk')
    user_link(@user).should == link_to('Dmytro S.', user_url(:id => 10), :title => 'Dmytro Shteflyuk')
  end
end

Read the rest of entry »

Rails is just…

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

Rails is just an interface to the memcached?

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

Read the Scaling Twitter.

 
Copyright © 2005 - 2008, Dmytro Shteflyuk