Posts

Distributed Version Control System - Part 2

  To Read - πŸ‘‰πŸ» Distributed Version Control System - Part 1 πŸ‘ˆπŸ» Basic Git Commands 1. Project folder ထတွင်း Git repository α€‘α€žα€…် α€–α€”်တီးခြင်း      git  init 2. α€›ှိပြီးα€žား repository α€€ို local machine α€€ို copy α€œုပ်ခြင်း      git  clone 3. α€œα€€်α€›ှိ file ထခြေထနေ (modified, staged, untracked) α€€ိုα€€ြα€Š့်ခြင်း      git  status 4. ပြင်ဆင်α€™ှုα€™ျားα€€ို commit α€œုပ်α€–ို့ stage α€œုပ်ခြင်း      git  add filename.py        git  add .             5. Staged changes α€€ို repository α€™ှာ save α€œုပ်ခြင်း      git  commit 6. Local repository α€™ှ committed changes α€€ို remote repository α€žို့ ပို့ခြင်း          git  push 7. Remote repository α€™ှ latest changes α€€ို local repository α€žို့ α€šူခြင်း      git  fetch  origin      git  pull  origin main 8. Branch α€™ျားα€€ြα€Š့်ခြင်း α€žို့α€™α€Ÿု...

Distributed Version Control System - Part 1

To Read -  πŸ‘‰πŸ»  Distributed Version Control System (Part 2) - Git Commands  πŸ‘ˆπŸ» Distributed Version Control System Distributed Version Control System (DVCS) ဆိုတာ source code တွေα€€ို တစ်α€”ေα€›ာထဲα€™ှာ α€žိα€™်းα€†α€Š်းတာတင်α€žာမကပဲ၊ ပြင်ဆင်α€™ှုတိုင်းα€€ို α€™ှတ်တမ်းတင်ပေးပြီး ထဖွဲဝင်α€™ျားထကြား ပူးပေါင်းα€œုပ်ဆောင်α€”ိုင်α€…ေတဲ့ α€…α€”α€…်α€–ြα€…ိပါα€α€š်။  Distributed Version Control System (Git) - Git Hub, Git Lab, Bit Bucket, Azure Repos, ... VCS applications တွေα€€ source code α€€ို α€žိα€™်းα€†α€Š်းပေးα€›ုံα€žာα€™α€€ ထောα€€်α€–ော်ပြပါ features supportတွေα€€ို α€œုပ်ပေးပါα€α€š်။ ✨ Repository  Developers တွေα€Ÿာ repository α€œိုခေါာတဲ့ α€žိုα€œှောင်α€›ုံα€™ျားα€…ွာα€€ို α€–α€”်တီးα€”ိုင်ပြီး α€€ိုα€š်ပိုင် project တွေα€€ို α€žိα€™်းα€†α€Š်းထားα€œို့ရပါα€α€š်။ ✨ Collaboration  α€€ိုα€š်α€–α€”်တီးထားတဲ့ repository တွေα€€ို တခြား developers တွေα€€ို sharing α€œုပ်α€”ိုင်α€žα€œို project တစ်ခုထဲ ထတူα€›ေးα€”ေတဲ့ developer team members တွေα€€ို invite α€œုပ်ပြီး α€›ေးထားတဲ့ source code တွေα€€ို repository ပေါာ ထချိα€”်α€”ဲ့တပြေးα€Šီ တင်ခြင်းထားα€–ြင့် team တစ်ခုα€œုံးα€€ α€›ေးထားတဲ့ codingတွေα€Ÿာ ထမြဲ update α€–ြα€…်α€”ေα€™ှ...

Creational Design Pattern - Factory Pattern

Image
In my previous blog, I discussed the Abstract Factory Pattern , which you can read if you're interested. Today, I am going to discuss the Factory Pattern. Factory Design Pattern Factory design pattern is similar to abstract factory pattern and they both are creational design patterns. The only difference is that Factory pattern has only one factory class while abstract factory pattern can have multiple different factories which extend the main abstract factory class. So, if you want to implement an application that have multiple similar objects, you can use factory pattern. Otherwise, if you have to implement multiple different types of objects, you can use abstract factory pattern which allows you to create multiple factories.  For Factory design pattern, it is quite less complex than abstract one. Take a look at this following diagram. I used the same example for both abstract factory and factory pattern. So you can understand the difference between two of them easily. The Factor...

Creational Design Pattern - Abstract Factory

Image
 There are 5 types of creational design patterns - Abstract Factory, Builder, Factory Method, Prototype and Singleton.  Abstract Factory Design Pattern Abstract Factory is used for creation of various types of similar objects. Before explanation about the structure of this pattern, take a look at the following diagram.    The Abstract Factory Pattern may seem complex at first, but once you understand its components, it becomes much easier to work with. Here's a simple breakdown of how it operates. It consists of six key components: Interface : An interface acts as a blueprint that multiple classes will implement. In this example, Food_Drink_Interface defines a food_drink ( ) method with an empty body. This method is implemented by multiple concrete classes such as Burger , Pizza , Coffee , and Tea . Abstract Factory : An abstract factory helps create related objects without needing to know which concrete class is being instantiated. In this case, Food_Drink_Fa...

What is Design Pattern ?

Image
Introduction πŸ€”πŸ§ πŸ’‘ I found myself repeatedly questioning, "What is a design pattern , and why I should use it ? ".  The professor said that using design patterns makes our code more readable, cleaner, and easier to maintain.  Despite my efforts, the concept remained abstract and unclear.  A concise and insightful quote by  Christopher Alexander ,  well-known architect,  who pioneered the concept of design patterns, clarified the idea for me. He explained that  'Each design pattern can describe an issue which happens again and again in our surrounding. Then, it also describes about the fundamental solution to that problem. In this way, you can use this solution a million times over, without every doing it the same way twice.' This quote helped to illuminate my understanding of design patterns, enabling me to better grasp their importance and application.  Who created design pattern ? Christopher Alexander, the father of design pattern - an archite...