Archive for March 24th, 2008

ROR : Important Points to be noted

Ruby on Rails| No Comments »

> Difference between Ruby load and require:
Ruby programs may be broken up into multiple files, and the most natural way to partition a program is to place each nontrivial class or module into a separate file. These separate files can then be reassembled […]

Difference between Mocks and Stubs

Ruby on Rails| No Comments »

Many developers confuse the ideas behind stubbing and mocking. Stubbing simply replaces a real-world implementation with a simpler implementation. A stub can replace full login system with a simple substitute. A stub’s job is to simulate the real world. Mocks are not stubs. A mock object, instead, is like a gauge that measures the […]

Single Table Inheritance

General, Ruby on Rails| No Comments »

Active Record allows inheritance by storing the name of the class in a column that by default is named “type” (can be changed by overwriting Base.inheritance_column). This means that an inheritance looking like this:
class Company < ActiveRecord::Base; end
class Firm < Company; end
class Client < Company; end
class […]

The “remembered” three fishes story…

General| No Comments »

Instead of using the word “unforgettable story”, I should say this story is always remembered in every act of my life.
The story is a lesson of my telugu detailed text book in my school days and it is … as follows:
Once upon a time, there lived three fishes in a lake. Their names are […]

Powered by WordPress | Created by miloIIIIVII | Entries RSS | Comments RSS