First Programm Archives | Programming Guide

Java Factory pattern

When do we use it? Design patterns are used when you have a super class with multiple sub classes depending on output you need to return one of the sub classes. Usage Method 1: Apply a Singleton pattern Usage Method 2: make the factory method static advantage Provide approach to code for interface rather than implementation Changes of […]

backup of hybrid partition tables

Well, imagine if you have a MacOs with hybrid operation systems “Linux”, “Windows”.The most difficult part is to make a backup system, that makes a backup of each partition correctly. There is a general solution to this problem. Many backup systems fail to backup because of different partition tables(like MBR/GPT..) What is MBR?(short version) Master Boot Record stores […]