Creational Design Pattern – Builder Patterns

Another creations pattern that lets you construct complex objects is the builder pattern, it is the solution for Anti Pattern called Telescoping Constructor. This anti pattern occurs when developer attempts to create a complex object with excessive use of constructors, Builder pattern tries to solve this issue. Lets have an analogy here,¬† Our cake business…

Creational Design Patterns: Singleton

Singleton is needed when you want only one object to be instantiated from a class. Singleton ensures that class has only one instance, and that instance has global access, you can call it object oriented way of initializing global variable. An example for this would be, for our cake website we keep a cache that…

MHz GHz zzzzz…..

Whenever we discuss about any system be it a laptop, a phone, a desktop we are always concerned¬† about the processor. How many GigaHertz is the processor? Which is the latest in the market? The higher the better?…¬† But what really is MHz and Ghz? And why is it so important? HERTZ Hz in MHz…