<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Biswajit Das</title>
    <description>The latest articles on DEV Community by Biswajit Das (@roni_da_0981).</description>
    <link>https://dev.to/roni_da_0981</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2498970%2F60ae101f-13a1-4560-b7ab-f0ff398a33c8.jpg</url>
      <title>DEV Community: Biswajit Das</title>
      <link>https://dev.to/roni_da_0981</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roni_da_0981"/>
    <language>en</language>
    <item>
      <title>Beginner Guide for Git&amp; git-hub</title>
      <dc:creator>Biswajit Das</dc:creator>
      <pubDate>Fri, 07 Mar 2025 02:34:19 +0000</pubDate>
      <link>https://dev.to/roni_da_0981/beginner-guide-for-git-git-hub-42e3</link>
      <guid>https://dev.to/roni_da_0981/beginner-guide-for-git-git-hub-42e3</guid>
      <description>&lt;h2&gt;
  
  
  What is a git?
&lt;/h2&gt;

&lt;p&gt;Git is version control software, which is used to keep track changes on software files.&lt;/p&gt;
&lt;h3&gt;
  
  
  REPO➖
&lt;/h3&gt;

&lt;p&gt;It store multiple software files in a single folder.&lt;/p&gt;
&lt;h2&gt;
  
  
  All used Commands
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Basic Command
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;git version&lt;/code&gt; → used for check git version&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git status&lt;/code&gt; → it shows which folders are tracked or untracked.&lt;/p&gt;


&lt;h3&gt;
  
  
  Project command
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;git init&lt;/code&gt; → used only for one time in a project.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git add&lt;/code&gt; → used for add file in  current  branch.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git commit -m "add your message"&lt;/code&gt; → It is worked like check points and used for comment in a pash.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git push origin main&lt;/code&gt; → it push git history on the git hun. &lt;/p&gt;



&lt;ul&gt;
&lt;li&gt;git follow atomic  commits. Means keep commit on an one feature or one component at a time.&lt;/li&gt;
&lt;li&gt;Commit must be order from. e.g.: &lt;strong&gt;Add navbar&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;commit works:

&lt;ul&gt;
&lt;li&gt;commit are depends on their &lt;strong&gt;parent commit.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Each commits has their own hash code.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;
  
  
  Git configure commands
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;git config --global [user.](http://user.name)email&lt;/code&gt; → this command configure your email address for globally. if you want to store your email for local project then use &lt;code&gt;--local&lt;/code&gt; instead of global.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git config --global user.username&lt;/code&gt; → it also did some  thing.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git log --oneline&lt;/code&gt; → to  see all commits in the current branch.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.gitignore&lt;/code&gt; → it is file. That is untracked by git. we can put file name  which are private.&lt;/p&gt;


&lt;h3&gt;
  
  
  Git Branch and Conflict
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;What is Branch ?

&lt;ul&gt;
&lt;li&gt;Branch in git is known as a timeline. Different programmer can worked different timeline in same Repos. like some worked on hero section in a website and other one worked on Navbar. &lt;strong&gt;main is root branch.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;git branch&lt;/code&gt; → it is used to create new branch.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git switch&lt;/code&gt; → it is used for switching different branches.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;we can replace switch with &lt;code&gt;checkout&lt;/code&gt;  . it did same work.&lt;/li&gt;
&lt;li&gt;Head always point Main branch, where is current at.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If we not mange other branches, then one work in one branch is vanished from other branch. like Dr. strange &lt;/p&gt;

&lt;p&gt;&lt;code&gt;git branch&lt;/code&gt; → used to see all branch.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fehg5ba1299rpcejcdtd6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fehg5ba1299rpcejcdtd6.png" alt="Image description" width="197" height="49"&gt;&lt;/a&gt;&lt;br&gt;
Green one is current branch where we staying.&lt;/p&gt;




&lt;h3&gt;
  
  
  Git Merge Different branch/timeline
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;To merge different timeline with main. we must comes first on main branch. then type this command:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;git merge &amp;lt;add_branchname_that_will_be_merge&amp;gt;&lt;/code&gt; → use to marge .&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;❗ sometimes conflicts happens when both programmer write code in same file.&lt;/li&gt;
&lt;li&gt;To mange conflicts we have three choice: 1. Accept both code. 2. Accept incoming code. 3. Accept main branch code.&lt;/li&gt;
&lt;li&gt;This process can be done by manually.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqm8xlspnmrv3wb2x8mob.png" alt="Image description" width="636" height="350"&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Git diff and stash
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;git diff&lt;/code&gt; used for compare same file with current commit and previous commit.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;---&lt;/code&gt; and &lt;code&gt;+++&lt;/code&gt; indicates changes in file, not deletion and insertion.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git stash&lt;/code&gt; is special command on git. for storing changes in temporary. don’t need add and commit before changing branches.&lt;/li&gt;
&lt;li&gt;we can back our changes in any branches using this command.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git stash pop&lt;/code&gt; → used back stashed worked.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git restore&lt;/code&gt; → it works same.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Rebase
&lt;/h3&gt;

&lt;p&gt;Rebase is an alternative of merge and a cleaning &lt;a href="http://tool.It" rel="noopener noreferrer"&gt;tool.&lt;/a&gt; It is used for marge two different timeline into a single timeline.&lt;/p&gt;

&lt;p&gt;❗ don’t run this command when you are on main branch. because it will change your commit history.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git rebase  &amp;lt;branch_name&amp;gt;&lt;/code&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  GITHUB
&lt;/h2&gt;

&lt;p&gt;Git is a version control and git-hub is a service to host git online.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;git work with SSH key, which is very sensitive. for more go git-hub doc.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Add Git into Github.
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;git remote add origin &amp;lt;url&amp;gt;&lt;/code&gt; - connect git with git-hub repo.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git remote -v&lt;/code&gt; → check git-hub repo is configured or not.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git push -u origin main&lt;/code&gt; → used to send code base into the main branch in git-hub. &lt;code&gt;-u&lt;/code&gt; set upstream that allow us for future command &lt;code&gt;git push&lt;/code&gt;&lt;/p&gt;




&lt;p&gt;Disclaimer.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;when clone some repos, you just get main branch, rest of repos are not configured with main branch.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;-&lt;/p&gt;

</description>
      <category>web3</category>
      <category>webdev</category>
      <category>github</category>
      <category>git</category>
    </item>
    <item>
      <title>OOPs concepts 💖</title>
      <dc:creator>Biswajit Das</dc:creator>
      <pubDate>Sat, 30 Nov 2024 14:12:37 +0000</pubDate>
      <link>https://dev.to/roni_da_0981/oops-concepts-4cj0</link>
      <guid>https://dev.to/roni_da_0981/oops-concepts-4cj0</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Object&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;⇒ An &lt;strong&gt;Object&lt;/strong&gt; is a fundamental unit of Object-Oriented Programming (OOP) that represents real-world entities. It is created from a class and contains the attributes and behaviors defined by the class. Once an object is created, it can execute the methods and access the properties of its class.  &lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Class&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;⇒ A &lt;strong&gt;Class&lt;/strong&gt; is a blueprint for objects. It represents a collection of objects and defines their properties and behaviors. Classes do not take up memory space until an object is created from them.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A class can be considered as a &lt;strong&gt;logical entity&lt;/strong&gt; that encapsulates data and methods.
&lt;/li&gt;
&lt;li&gt;Class names typically start with a &lt;strong&gt;capital letter&lt;/strong&gt;.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; A class defines the common properties and methods shared by all objects of the same type.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fedsbysl8n3dkjrchtaus.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fedsbysl8n3dkjrchtaus.png" alt="Image description" width="399" height="208"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Access Modifiers&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;In Java, access modifiers control the scope and visibility of classes, methods, and variables. They provide security and define accessibility.  &lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Types of Access Modifiers:&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If no access modifier is specified, Java treats the variable, method, or class as having the default modifier.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Default modifiers are accessible only within the same package.&lt;/strong&gt;
&lt;strong&gt;Example:&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Two code files in the same package can access default methods or variables simply by creating an object of the file containing the methods.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Private:&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Specified using the &lt;code&gt;private&lt;/code&gt; keyword.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accessible only within the class&lt;/strong&gt; in which they are declared.
&lt;/li&gt;
&lt;li&gt;Private modifiers cannot be used on top-level classes or interfaces because they limit access to within the enclosing class.
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; Private modifiers are typically used for &lt;strong&gt;nested classes&lt;/strong&gt; or &lt;strong&gt;data members&lt;/strong&gt; within a top-level class. Private members can only be accessed using &lt;strong&gt;getter&lt;/strong&gt; and &lt;strong&gt;setter methods.&lt;/strong&gt;  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Protected:&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Declared with the &lt;code&gt;protected&lt;/code&gt; keyword.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accessible within the same package&lt;/strong&gt; or in subclasses in different packages.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not accessible in unrelated classes outside the package.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Public:&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Specified with the &lt;code&gt;public&lt;/code&gt; keyword.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accessible from any class, package, or subclass, even outside the package.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fri9ycvvbj5835gbmh0tr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fri9ycvvbj5835gbmh0tr.png" alt="Image description" width="800" height="347"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Keyword &lt;code&gt;this&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;⇒ The &lt;code&gt;this&lt;/code&gt; keyword refers to the current object. It is used to access the object’s variables or reference the object itself within a method or constructor.  &lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;OOP Principles&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Object-Oriented Programming (OOP) revolves around four main concepts:  &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Encapsulation:&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Encapsulation is the process of wrapping up data and methods in a single unit.
&lt;/li&gt;
&lt;li&gt;It promotes &lt;strong&gt;data hiding&lt;/strong&gt; by restricting access to certain components.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Example:&lt;/strong&gt; A class acts as a capsule that holds data (attributes) and methods (behaviors).
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Polymorphism:&lt;/strong&gt; Enables methods or objects to perform different tasks based on their implementation.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Abstraction:&lt;/strong&gt; Focuses on exposing only the essential features of an object while hiding the implementation details.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Inheritance:&lt;/strong&gt; Allows one class to inherit the properties and methods of another class, promoting code reuse.  &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Constructors&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;A constructor is a special type of method in a class:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is invoked automatically when an object is created.
&lt;/li&gt;
&lt;li&gt;It is used to initialize the properties of an object.
&lt;/li&gt;
&lt;li&gt;Constructors share the same name as the class and do not have a return type.
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;follow me for more 💖&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>java</category>
      <category>coding</category>
    </item>
  </channel>
</rss>
