Search This Blog

Wednesday, October 7, 2009

Design Pattern

design pattern is a general reusable solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.

Design Pattern Types
Creational
Structural
Behavioral
Concurrency



creational design patterns are design patterns that deal with object creation mechanisms, trying to create objects in a manner suitable to the situation. The basic form of object creation could result in design problems or added complexity to the design. Creational design patterns solve this problem by somehow controlling this object creation.


structural design patterns
are design patterns that ease the design by identifying a simple way to realize relationships between entities.

behavioral design patterns are design patterns that identify common communication patterns between objects and realize these patterns. By doing so, these patterns increase flexibility in carrying out this communication.


concurrency patterns
are those types of design patterns that deal with multi-threaded programming paradigm.

Tuesday, October 6, 2009

TIPS

Ants Problem:
Keep the skin of cucumbers near the place or ant hole.


To get pure and clean ice:

Boil water first before freezing.

To make the mirror shine:
Clean with spirit

To remove chewing gum from clothes:
Keep the cloth in the freezer for an hour.

To whiten white clothes
Soak white clothes in hot water with a slice of lemon for 10 minutes 10


To give a shine to hair:

Add one teaspoon of vinegar to hair, then wash hair.

To get maximum juice out of lemons:
Soak lemons in hot water for one hour, and then juice them.


To avoid smell of cabbage while cooking:

Keep a piece of bread on the cabbage in the vessel while cooking.


To rid the smell of fish from your hands:

Wash your hands with a little apple vinegar.

To avoid tears while cutting onions:
Chew gum.

To boil potatoes quickly:
Skin one potato from one side only before boiling.

To boil eggs quickly:
Add salt to the water and boil.

To check freshness of fish:
Put it in a bowl of cold water. If the fish floats, it's fresh.

To check freshness of eggs:
Put the egg in water. If it becomes horizontal, it's fresh. If it becomes slanting, its 3-4 days old. If it becomes vertical, its 10 days old. If it floats, it's stale.


To remove ink from clothes:

Put toothpaste on the ink spots generously and let it dry completely, then wash.


To skin sweet potatoes quickly:

Soak in cold water immediately after boiling.

To get rid of mice or rats:
Sprinkle black pepper in places where you find mice or rats. They will run away.

To get rid of mosquitoes at night:
Keep leaves of mint near your bed or pillows and in around the room.

Hit Counter


View My Stats