Rohit Pant
  • Male
  • Bangalore, Karnataka
  • India
Share on Facebook Share Twitter

Gifts Received

Gift

Rohit Pant has not received any gifts yet

Give a Gift

 

Rohit Pant's Page

Profile Information

How did you hear about Smart Software ?
I am the owner !
What do you do ?
on smart software

Rohit Pant's Blog

Interface Segregation Principle

Folks,

From the bunch of SOLID , I guess this is a fairly easy principle to understand. One of the basics of OOP is that we must code to interfaces and not to classes. Assuming that you have done that just make sure that your interfaces are not getting FAT. FAT is a common word used to explain this principle. By FAT we mean an interface with loads of methods in it and eventually all of them are not required by the classes that implement these interfaces.One direct issue with FAT…

Continue

Posted on May 31, 2012 at 1:00am

Liskov Substitution Principle

Folks,

            Barbara Jane Liskov was the first women american computer scientst who earned a PHd in computer science. She is the one who also came up with Liskov substituion principle and it is the 'L' in SOLID. She coined this term in 1987. First let's see what it means in her own words. "If for each object o1 of type S there is an object o2 of type T such that for all programs P defined in terms…

Continue

Posted on February 19, 2012 at 12:00am

Open Close Principle

Open Close Principle



'O' in SOLID is Open Close Principle. Termed a long time back and of course is very effective today also. It was coined somewhere 1988 by Bertrand Meyer  in his …

Continue

Posted on February 11, 2012 at 6:30am

Single Responsibility Principle

Single Responsibility principle [SRP]
                                                  This means that any software module just should have one reason to change and that is what is called as responsibility. Let's jump to an example quickly to get this started. In an Inventory Management System for a medicine export business, if there is a Product class then it might have some methods like showExpiryDate(),…
Continue

Posted on December 3, 2011 at 2:00am

GoF Series - Singleton Pattern

Friends,

               Time for Singleton.

 

GoF Intent 

“Ensure a class only has one instance, and provide a global point of access to it”

Why Singleton ?

Well, why not ? This is a very common pattern and as it's intent suggests it is all about making only one instance per class. There might be a strong…

Continue

Posted on September 1, 2011 at 12:30am

Comment Wall

You need to be a member of Smart Software to add comments!

Join Smart Software

  • No comments yet!
 
 
 

© 2013   Created by Rohit Pant.

Badges  |  Report an Issue  |  Terms of Service