Quantcast
Channel: Planet of Coders
Browsing latest articles
Browse All 6 View Live

Image may be NSFW.
Clik here to view.

Can you explain visitor pattern?

Visitor pattern allows us to change the class structure with out changing the actual class. Its way of separating the logic and algorithm from the current data structure. Due to this you can add new...

View Article



Image may be NSFW.
Clik here to view.

Difference between Visitor Pattern and Strategy Pattern?

Visitor and strategy look very much similar as they deal with encapsulating complex logic from data. We can say visitor is more general form of strategy. In strategy we have one context or a single...

View Article

Image may be NSFW.
Clik here to view.

Can you explain adapter pattern?

Many times two classes are incompatible because of incompatible interfaces. Adapter helps us to wrap a class around the existing class and make the classes compatible with each other. Consider the...

View Article

Image may be NSFW.
Clik here to view.

What is fly weight pattern?

Fly weight pattern is useful where we need to create many objects and all these objects share some kind of common data. Consider figure ‘Objects and common data’. We need to print visiting card for...

View Article

What is responsive design? Why use it?

Responsive design is a technique that enables developers to adapt the layout and design of an app to suit multiple screen sizes. This is implemented using a series of CSS media queries that trigger...

View Article

Browsing latest articles
Browse All 6 View Live




Latest Images