Using Lazy Loading Design pattern to load data when required

Hi,

Some time when you are working with large objects where some of the data (properties in the object) is not required frequently, the use of Lazy loading is the best.

 Let’s say you have an Object which contains many properties along with a property for exposing long XML string. The long XML string is only required to be shown only a few times when you are also showing the details of the object. At this point when we are loading a list of this object to display (where by XML string will not be displayed) its not a good practice to also load the XML string in the object. Since this would take lots of extra Network bandwidth and memory space.

Continued...

Creational design Pattern – Implementing Singleton using Dot Net

Hi,

Singleton in one of the most important of the creational design pattern. Lets start with what is a creational design pattern. Creational design pattern are design pattern which are related with the creating of objects. They define the design for the creation of an object for various usage.

[Note: you can check this previous post of mine on why to use design patterns.
http://www.vikramlakhotia.com/A_word_about_Design_Pattern.aspx ]

Continued...

Design pattern – What can they mean?

Hi

A few days back when I wrote the blog on design pattern a small but interesting question came to my mind. How and why did the design pattern started. So I started hunting in the google for my curiosity and found some interesting stuff. So I thought I would share them with you.

A repeatable solution for commonly occurring problem in the software programming is called design pattern. Design patterns are not finished designs for the problems, but are template and description on how the solve the problem, which might occur in different situations.  Design patterns commonly show relations and interaction of different class or objects or types. They do not specify the final class or types that will be used, but give an abstract view of the solution.

Continued...

A word about the observer design pattern

Hi,

A few days back on of my senior talked about different pattern and how useful they can be in the process of development. We were talking about the observer pattern. So I thought I will write a bit about the observer design pattern.

Based on the principal of implicit invocation, Observer design pattern (also known as publish Subscribe) is used in programming to observer the state of and object in a program. In many programming language the issue of this pattern are handled in native event handling syntax.

Continued...
 
Copyright © 2006 - 2008 Vikram Lakhotia