<?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: yuki</title>
    <description>The latest articles on DEV Community by yuki (@yuki-92c).</description>
    <link>https://dev.to/yuki-92c</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%2F1139791%2Fc3444c0e-5e7c-4d0d-b63e-5559550c3f78.png</url>
      <title>DEV Community: yuki</title>
      <link>https://dev.to/yuki-92c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yuki-92c"/>
    <language>en</language>
    <item>
      <title>Algorithms for beginners</title>
      <dc:creator>yuki</dc:creator>
      <pubDate>Sat, 07 Oct 2023 04:40:02 +0000</pubDate>
      <link>https://dev.to/yuki-92c/algorithms-for-beginners-45ic</link>
      <guid>https://dev.to/yuki-92c/algorithms-for-beginners-45ic</guid>
      <description>&lt;h2&gt;
  
  
  What is algorithms?
&lt;/h2&gt;

&lt;p&gt;What image comes to mind when you hear the word "algorithm"? In my case, "Hmmmm, it sounds kind of difficult".&lt;/p&gt;

&lt;p&gt;Even though it sounds difficult, algorithms are very familiar to us in our daily lives. A series of "steps" that describes how to solve a certain problem or complete a certain goal is called an algorithm.&lt;/p&gt;

&lt;p&gt;The name "algorithm" is said to come from the name of the 9th century mathematician al-Huwarizmi in present-day Baghdad, Iraq. Algorithms are a concept with a longer history than computers and programs.&lt;/p&gt;

&lt;p&gt;Now, let us consider an algorithm with a familiar example. For instance, shopping is one algorithm.　&lt;/p&gt;

&lt;p&gt;If you have a list of items to buy one bottle of milk, one bag of potatoes, and a dozen egg, there are multiple ways to find the items in any order. Such a case in which the items can be processed in any order can be called a list-type data structure. Also, an algorithm whose behaviour depends on certain conditions, such as buying another bottle of milk if it costs less than $3, is called a choice structure algorithm. Thus, in fact, algorithms are hidden in our daily life.&lt;/p&gt;

&lt;h2&gt;
  
  
  Algorithms and Flowcharts
&lt;/h2&gt;

&lt;p&gt;A flowchart is a diagrammatic technique for designing the flow of a program.&lt;/p&gt;

&lt;p&gt;Flowcharts allow for a holistic view of information, clarifying and understanding the process. It is a useful tool that allows even complex information to be presented in a visually clear manner.&lt;/p&gt;

&lt;p&gt;Here are some basic types of control structures.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sequential
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Executes processes in a top-to-bottom order.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's take shopping as an example and represent it in a flowchart and code. When you go shopping, first thing to do is leave home. When you arrive at the grocery store, you search for products, purchase them, and return home. This order cannot be changed. They are executed in order from top to bottom.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3x6rI6Ko--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qrkvnv2nu9xqd1oyo4ak.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3x6rI6Ko--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qrkvnv2nu9xqd1oyo4ak.png" alt="Sequential description" width="356" height="960"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;
&lt;span class="nx"&gt;leaveHouse&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nx"&gt;searchItems&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nx"&gt;makePayment&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="nx"&gt;goBackHome&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Branching
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Select one of two or more alternative paths. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Suppose you go shopping and buy some milk. You want milk but are concerned about the price. Therefore, you decide on a budget. If the price of a bottle of milk is less than $3, you buy two more bottles of milk. However, if the price is higher than $3, you decide to buy only one bottle. This process can be represented as follows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uOrJj0IY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u74msbjzmocigw6a1udo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uOrJj0IY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u74msbjzmocigw6a1udo.png" alt="Branching description" width="800" height="936"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;searchMilk&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;milkNum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;milkPrice&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
    &lt;span class="nx"&gt;milkNum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;milkNum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;makePayment&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Iterative
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The same process is repeated until the end condition of the iteration is met.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You are now going to cook with potatoes. There are 10 potatoes in a bag. If you use one whole potato, it is too big. So you decide to cut the potatoes in half. The action of cutting the potatoes is repeated until there are no more potatoes in the bag. This can be expressed as follows.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sT58RmFa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9goskk2cfxpsehh5pru8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sT58RmFa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9goskk2cfxpsehh5pru8.png" alt="Iterative description" width="800" height="941"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;potatoNum&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;

&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;potatoNum&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;cutPotato&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="c1"&gt;// A function to cut a potatoes in half &lt;/span&gt;
  &lt;span class="nx"&gt;potatoNum&lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;Algorithms are an important tool for programs to solve problems. Even algorithms that seem complex may be better understood by drawing a flowchart!&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>beginners</category>
    </item>
    <item>
      <title>JavaScript - Understanding Functions</title>
      <dc:creator>yuki</dc:creator>
      <pubDate>Mon, 25 Sep 2023 20:58:48 +0000</pubDate>
      <link>https://dev.to/yuki-92c/javascript-understanding-functions-4dpj</link>
      <guid>https://dev.to/yuki-92c/javascript-understanding-functions-4dpj</guid>
      <description>&lt;p&gt;A function is an instruction that takes some data, executes a defined and unique process, and returns the result. It's almost like a vending machine which you put money in and a drink comes out.&lt;/p&gt;

&lt;p&gt;Two steps are necessary to use the function.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Declare a function&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Call a function&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  ◾️　Function Declaration
&lt;/h2&gt;

&lt;p&gt;Functions can be declared using the "function" followed by a name and a pair of parentheses, which may contain argument if needed. And then write the tasks inside the curly braces {}.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;$FUNCTION_NAME&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;$STATEMENTS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;$FUNCTION_NAME&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;// call a function&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ◾️　Function Expression
&lt;/h2&gt;

&lt;p&gt;A function expression is very similar to a function declaration. A function expressions can be assigned to variables or used as arguments in other functions. It doesn't require a function name(anonymous functions).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;$FUNCTION_NAME&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;$STATEMENTS&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="nx"&gt;$FUNCTION_NAME&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;// call a function&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ◾️　Function Call
&lt;/h2&gt;

&lt;p&gt;You can call the function by just writing its name and parentheses. If arguments are required, they can be written in parentheses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Argument(/Parameters)&lt;/strong&gt;:&lt;br&gt;
Functions can accept parameters, which allow you to pass specific value to the function when it's called. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Return Value&lt;/strong&gt;&lt;br&gt;
By using return statement, you can return value to the code that called them. The returned value can be used in the code that called the function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// argument: width, height&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;calculateArea&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// return the value&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;width&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c1"&gt;// pass the value to function&lt;/span&gt;
&lt;span class="c1"&gt;// width:4, height:5&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;calculateArea&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt; &lt;span class="c1"&gt;//20&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ▫️　Hoisting
&lt;/h3&gt;

&lt;p&gt;Hoisting is JavaScript's default behaviour of moving declarations to the top.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Functions&lt;/th&gt;
&lt;th&gt;Hoisting&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Function Declarations&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;○&lt;/td&gt;
&lt;td&gt;You can call a function before it's defined in the code.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Function Expressions&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;×&lt;/td&gt;
&lt;td&gt;You can call a function only after the line in which they are defined. Attempting to call a function expression before its definition will result in an error.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  ◾️　Anonymous functions
&lt;/h2&gt;

&lt;p&gt;Functions can also be defined without a name. These functions are called anonymous functions and used for code that only needs to run once within a task, rather than repeatedly being called by other parts of the script. These are often used as arguments to other functions, assigned to variables, or used as event handlers and listeners to perform a task when an event occurs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;squareArea&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;width&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ◾️　Arrow Functions
&lt;/h2&gt;

&lt;p&gt;Arrow functions are a function notation newly introduced in ES2015(ES6), and as the name suggests, functions are defined using &lt;code&gt;=&amp;gt;&lt;/code&gt;. They are useful for short, one-line functions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;squareArea&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;width&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="nx"&gt;squareArea&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the function has only one statement, you can omit the curly braces and the &lt;code&gt;return&lt;/code&gt; keyword.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;squareArea&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;width&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;height&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the function has only one parameter, you can omit the parentheses.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;sayHi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;`Hi &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;! How are you?`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>newbie</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>git #1 - study notes</title>
      <dc:creator>yuki</dc:creator>
      <pubDate>Mon, 18 Sep 2023 02:34:39 +0000</pubDate>
      <link>https://dev.to/yuki-92c/git-1-study-notes-5eee</link>
      <guid>https://dev.to/yuki-92c/git-1-study-notes-5eee</guid>
      <description>&lt;h2&gt;
  
  
  what is git?
&lt;/h2&gt;

&lt;p&gt;Git is a distributed version control system that tracks changes to files. It allows multiple users to collaborate and facilitates work in software development.&lt;/p&gt;

&lt;h2&gt;
  
  
  git repository
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Git repository is a workspace that tracks and saves the history of all changes you made to the files.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Local Repository&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A repository located on a user's own machine.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2czJNHE0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4tcy074j8ta10jtkfjnu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2czJNHE0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4tcy074j8ta10jtkfjnu.jpg" alt="Local Repository" width="800" height="734"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remote Repository

&lt;ul&gt;
&lt;li&gt;A repository placed on a dedicated server to be shared by multiple users.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hzp-ETkF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wu0wtpwwzfo0frzqrnst.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hzp-ETkF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wu0wtpwwzfo0frzqrnst.jpg" alt="Remote Repository" width="800" height="621"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  check the git version
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;❯❯❯ git &lt;span class="nt"&gt;-v&lt;/span&gt;
git version 2.39.2 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  configuring your local git
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;❯❯❯ git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.name &lt;span class="s2"&gt;"my name"&lt;/span&gt;
❯❯❯ git config &lt;span class="nt"&gt;--global&lt;/span&gt; user.email abcde@mail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can verify your configurations&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;❯❯❯ git config user.name
my name

❯❯❯ git config user.email
abcde@mail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Initialize a new Git repository
&lt;/h2&gt;

&lt;p&gt;When you run &lt;code&gt;git init&lt;/code&gt;, a directory called &lt;code&gt;.git&lt;/code&gt; will be created. This folder contains all the information necessary for Git to operate.&lt;/p&gt;

&lt;p&gt;It's not recommended to initialize a new repository inside of an existing repository.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;❯❯❯ git init 
&lt;span class="c"&gt;# or&lt;/span&gt;
❯❯❯ git init &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;dirName&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;

❯❯❯ git init
Initialized empty Git repository &lt;span class="k"&gt;in&lt;/span&gt; /Users/user/Documents/git_test/.git/
❯❯❯ &lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-la&lt;/span&gt;
total 0
drwxr-xr-x  3 user  staff   96 Sep 11 21:59 &lt;span class="nb"&gt;.&lt;/span&gt;
drwxr-xr-x  6 user  staff  192 Sep 11 21:58 ..
drwxr-xr-x  9 user  staff  288 Sep 11 21:59 .git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  add and commit
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;git commit&lt;/code&gt; is used to save changes to your code in a repository. Commit is like a save point in a video game. So you can return to the save point later like the players. You can create snapshot of your changes and commit messages which help you keep track of what changes you've made in each commit. It is recommended to write in present tense.&lt;/p&gt;

&lt;p&gt;But before &lt;code&gt;git commit&lt;/code&gt; you have to stage your changes. When you run &lt;code&gt;git add&lt;/code&gt;, you are essentially telling Git which changes or files you want to include in the next commit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VAy0hF6E--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xqieg59xad8ulmerflp0.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VAy0hF6E--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xqieg59xad8ulmerflp0.jpeg" alt="add_commit" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I made two files which are test1.txt and test2.txt and run git add command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# We have two files in this directory&lt;/span&gt;
❯❯❯ &lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-la&lt;/span&gt;
&lt;span class="nt"&gt;-rw-rw-r--&lt;/span&gt;  1 user  staff   820 11 Sep 22:00 test1.txt
&lt;span class="nt"&gt;-rw-rw-r--&lt;/span&gt;  1 user  staff   200 11 Sep 22:00 test2.txt

&lt;span class="c"&gt;# Add all files in this directory&lt;/span&gt;
❯❯❯ git add &lt;span class="nb"&gt;.&lt;/span&gt;

&lt;span class="c"&gt;# If you want to add specific files, you just need to specify the files&lt;/span&gt;
❯❯❯ git add &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;file1&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt; &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;file2&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;# Now we added two files to staging area&lt;/span&gt;
&lt;span class="c"&gt;# You can check the status by running git status command&lt;/span&gt;
❯❯❯ git status
On branch main

No commits yet

Changes to be committed:
  &lt;span class="o"&gt;(&lt;/span&gt;use &lt;span class="s2"&gt;"git rm --cached &amp;lt;file&amp;gt;..."&lt;/span&gt; to unstage&lt;span class="o"&gt;)&lt;/span&gt;
        new file:   test1.txt
        new file:   test2.txt

&lt;span class="c"&gt;# The -m flag allows you to pass in an inline commit message&lt;/span&gt;
❯❯❯ git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"initial commit"&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;main &lt;span class="o"&gt;(&lt;/span&gt;root-commit&lt;span class="o"&gt;)&lt;/span&gt; 36802f1] initial commit
 2 files changed, 2 insertions&lt;span class="o"&gt;(&lt;/span&gt;+&lt;span class="o"&gt;)&lt;/span&gt;
 create mode 100644 test1.txt
 create mode 100644 test2.txt

&lt;span class="c"&gt;# You can check all commits you have made by running git log command&lt;/span&gt;
❯❯❯ git log
commit 3680...5746 &lt;span class="o"&gt;(&lt;/span&gt;HEAD -&amp;gt; main&lt;span class="o"&gt;)&lt;/span&gt;
Author: me &amp;lt;me@mail.com&amp;gt;
Date:   Mon Sep 11 22:09:01 2023 &lt;span class="nt"&gt;-0700&lt;/span&gt;

    initial commit
lines 1-5/5 &lt;span class="o"&gt;(&lt;/span&gt;END&lt;span class="o"&gt;)&lt;/span&gt;...skipping...
commit 3680...5746 &lt;span class="o"&gt;(&lt;/span&gt;HEAD -&amp;gt; main&lt;span class="o"&gt;)&lt;/span&gt;
Author: me &amp;lt;me@mail.com&amp;gt;
Date:   Mon Sep 11 22:09:01 2023 &lt;span class="nt"&gt;-0700&lt;/span&gt;

    initial commit
~

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  diff
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;git diff&lt;/code&gt; command allows you to see &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;differences between working directory and stage&lt;/li&gt;
&lt;li&gt;differences between stage and repository&lt;/li&gt;
&lt;li&gt;differences with specific files
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 1. diffs between working directory and stage&lt;/span&gt;
❯❯❯ git diff

&lt;span class="c"&gt;# 2. diffs between stage and repository&lt;/span&gt;
❯❯❯ git diff &lt;span class="nt"&gt;--staged&lt;/span&gt;

&lt;span class="c"&gt;# 3. diffs with specific files&lt;/span&gt;
❯❯❯ git diff test2.txt
diff &lt;span class="nt"&gt;--git&lt;/span&gt; a/test2.txt b/test2.txt
index d606037..3b08777 100644
&lt;span class="nt"&gt;---&lt;/span&gt; a/test2.txt
+++ b/test2.txt
@@ &lt;span class="nt"&gt;-1&lt;/span&gt; +1,3 @@
&lt;span class="nt"&gt;-test2&lt;/span&gt;
&lt;span class="se"&gt;\ &lt;/span&gt;No newline at end of file
+test2
+addline
+addline2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>git</category>
      <category>newbie</category>
      <category>github</category>
    </item>
    <item>
      <title>command line cheat sheet for newbies</title>
      <dc:creator>yuki</dc:creator>
      <pubDate>Tue, 12 Sep 2023 20:21:15 +0000</pubDate>
      <link>https://dev.to/yuki-92c/command-line-cheat-sheet-for-newbies-2blb</link>
      <guid>https://dev.to/yuki-92c/command-line-cheat-sheet-for-newbies-2blb</guid>
      <description>&lt;p&gt;A command-line interface (CLI) is a way to interact with a computer's operating system by typing commands into a terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Structure
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;❯❯❯ &lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;command&lt;/span&gt; &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;options&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt; &lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;arguments&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;# e.g.&lt;/span&gt;
❯❯❯ &lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-la&lt;/span&gt; /document/photo 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;command

&lt;ul&gt;
&lt;li&gt;The action to be executed.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;options

&lt;ul&gt;
&lt;li&gt;These are optional options (or flags) that modify the command's behaviour.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;arguments

&lt;ul&gt;
&lt;li&gt;These are the required or optional arguments that use to specify the target. The format of arguments depend on the each command.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Shortcut
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Shortcut&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ctrl + a&lt;/td&gt;
&lt;td&gt;Move the insertion point to the beginning of the line&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ctrl + e&lt;/td&gt;
&lt;td&gt;Move the insertion point to the end of the line&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ctrl + b&lt;/td&gt;
&lt;td&gt;Move the insertion point backwards&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ctrl + f&lt;/td&gt;
&lt;td&gt;Move the insertion point forward&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ctrl + h&lt;/td&gt;
&lt;td&gt;Delete one character behind the cursor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ctrl + d&lt;/td&gt;
&lt;td&gt;Delete a character before the cursor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ctrl + u&lt;/td&gt;
&lt;td&gt;Delete the entire line&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Directory management
&lt;/h2&gt;

&lt;h3&gt;
  
  
  pwd
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;check the current directory
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/Desktop ❯❯❯ &lt;span class="nb"&gt;pwd&lt;/span&gt;
/Users/user/Desktop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  mkdir
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;make new directory
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/Desktop ❯❯❯ &lt;span class="nb"&gt;mkdir &lt;/span&gt;myDir
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  cd
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;change directory
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# change directory to myDir&lt;/span&gt;
~/Desktop ❯❯❯ &lt;span class="nb"&gt;cd &lt;/span&gt;myDir
&lt;span class="c"&gt;# change directory one level up in the hierarchy&lt;/span&gt;
~/Desktop ❯❯❯ &lt;span class="nb"&gt;cd&lt;/span&gt; ..
&lt;span class="c"&gt;# change directory to home&lt;/span&gt;
~/Desktop ❯❯❯ &lt;span class="nb"&gt;cd&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  File operations
&lt;/h2&gt;

&lt;h3&gt;
  
  
  ls
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;list files and directories&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-a&lt;/code&gt;:    list all files including hidden file starting with '.'&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-l&lt;/code&gt;: list with long format (permissions)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-t&lt;/code&gt;: sort by time and date&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-d&lt;/code&gt;: show only the directories
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/Desktop ❯❯❯ &lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-lat&lt;/span&gt;
total 2992
drwxr-xr-x+ 54 user  staff    1728  6 Sep 16:30 ..
drwx------@  9 user  staff     288  6 Sep 16:28 &lt;span class="nb"&gt;.&lt;/span&gt;
drwxr-xr-x@ 2 user  staff      64  6 Sep 16:28 newDir
&lt;span class="nt"&gt;-rw-r--r--&lt;/span&gt;@ 1 user  staff       0  6 Sep 16:25 file1.txt
&lt;span class="nt"&gt;-rwx------&lt;/span&gt;@ 1 user  staff  321110  6 Sep 14:04 file2.txt
&lt;span class="nt"&gt;-rwx------&lt;/span&gt;@ 1 user  staff  363448  5 Sep 08:46 file3.txt
&lt;span class="nt"&gt;-rwx------&lt;/span&gt;@ 1 user  staff  835488 26 Aug 11:21 file4.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  cp
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;copy files&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-r&lt;/code&gt;: copy directories recursively&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-p&lt;/code&gt;: preserve the attributes (mode,ownership and timestamps)
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/Desktop ❯❯❯ &lt;span class="nb"&gt;cp&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; originalDir copyDir
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  rm
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;remove files and directories&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-r&lt;/code&gt;: delete directories recursively&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-f&lt;/code&gt;: Ignore nonexistent files, and never prompt before removing&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-i&lt;/code&gt;: Prompt before removal&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-d&lt;/code&gt;: delete empty directories
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/Desktop ❯❯❯ &lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt; originalDir
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  mv
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;rename or move files and directories to another location&lt;/li&gt;
&lt;li&gt;Adding a -v flag is to print source/destination directory
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/Desktop ❯❯❯ &lt;span class="nb"&gt;mv&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; original.txt new.txt
original.txt -&amp;gt; new.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  other
&lt;/h2&gt;

&lt;h3&gt;
  
  
  man
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;view manual pages for Unix commands&lt;/li&gt;
&lt;li&gt;press &lt;code&gt;q&lt;/code&gt; to exit
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~/Desktop ❯❯❯ man &lt;span class="nb"&gt;ls
&lt;/span&gt;LS&lt;span class="o"&gt;(&lt;/span&gt;1&lt;span class="o"&gt;)&lt;/span&gt;                       General Commands Manual                      LS&lt;span class="o"&gt;(&lt;/span&gt;1&lt;span class="o"&gt;)&lt;/span&gt;

NAME
     &lt;span class="nb"&gt;ls&lt;/span&gt; – list directory contents

SYNOPSIS
     &lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;-@ABCFGHILOPRSTUWabcdefghiklmnopqrstuvwxy1%,] &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;--color&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;when]
        &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;-D&lt;/span&gt; format] &lt;span class="o"&gt;[&lt;/span&gt;file ...]

DESCRIPTION
     For each operand that names a file of a &lt;span class="nb"&gt;type &lt;/span&gt;other than directory, &lt;span class="nb"&gt;ls&lt;/span&gt;
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  clear
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;clear screen&lt;/li&gt;
&lt;li&gt;shortcut is &lt;code&gt;Ctrl + k&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  history
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;show history of previous commands
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  300  &lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-lat&lt;/span&gt;
  301  &lt;span class="nb"&gt;pwd
  &lt;/span&gt;302  &lt;span class="nb"&gt;cd
  &lt;/span&gt;303  man &lt;span class="nb"&gt;ls&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ★　extra tip!　★
&lt;/h3&gt;

&lt;p&gt;If you want to make sure a prompt always appears before deleting files you can create alias by changing configuration file. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.bashrc&lt;/code&gt;: Bash shell&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.zshrc&lt;/code&gt;: Zsh shell
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;~ ❯❯❯ &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'alias "rm=rm -i"'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; ~/.zshrc  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>newbie</category>
      <category>cheatsheet</category>
      <category>beginners</category>
    </item>
    <item>
      <title>My First Step to Become a Front-End Engineer</title>
      <dc:creator>yuki</dc:creator>
      <pubDate>Mon, 04 Sep 2023 02:58:57 +0000</pubDate>
      <link>https://dev.to/yuki-92c/my-first-step-to-become-a-front-end-engineer-44fo</link>
      <guid>https://dev.to/yuki-92c/my-first-step-to-become-a-front-end-engineer-44fo</guid>
      <description>&lt;p&gt;Hello! Thank you for reading my post:) &lt;/p&gt;

&lt;p&gt;My name is Yuki. I’m from Japan and currently living in Vancouver, Canada. In this post, I’d like to write a little about my background and my future goals.&lt;/p&gt;

&lt;h2&gt;
  
  
  About Myself
&lt;/h2&gt;

&lt;p&gt;I have worked as a cloud engineer for over 4 years since graduating from university and am currently enrolled in the web development program at Cornerstone International Community College. In university, I majored in English Literature and Media Studies and also studied Japanese Language Education as a minor. Computer science is a completely different field, isn't it? Some of you may be wondering why I worked as a cloud engineer.&lt;/p&gt;

&lt;p&gt;When I was a junior in uni, I went to Australia on a working holiday. I met many people there, and among them were IT engineers. I had never met an engineer before, so their stories were fresh and interesting. They really enjoyed their work and were proud of it. That made them very attractive. Also, ever since I was a child, I have loved to create, make and build things. So I decided to study HTML and CSS on my own. At first it was difficult because there were so many things I didn't understand, but as I was able to do more things, it became more interesting.&lt;/p&gt;

&lt;p&gt;After graduating from university, I started working for a Tokyo-based company that developed web systems for clients, and was assigned to the infrastructure department. My primary responsibilities included setting up the AWS environment, monitoring logs and alerts, and designing the security architecture for various business needs. I really enjoyed working "behind the scenes" supporting web systems because it was really rewarding work. However, the more I wrote code to automate operations in Python and infrastructure code in IaC tools, the more I wanted to learn about front-end.&lt;/p&gt;

&lt;p&gt;I also wanted to live in a different country and challenge myself. So I decided to come to Canada to learn web development. Two birds with one stone, don't you think?&lt;/p&gt;

&lt;h2&gt;
  
  
  My Goal
&lt;/h2&gt;

&lt;p&gt;First of all, I want to graduate from the college successfully and find a job as a front-end engineer who can provide satisfactory user experiences and solve clients' problems. As I write this article, I have just finished the first week of the course. During this week, we learned the basics such as computer hardware and networking. It was very interesting to learn some of the parts I knew from my previous job in English. I am satisfied that the teacher in my class is very attentive to the students and explains things in a way that is easy to understand. My classmates are really kind and enthusiastic and I am happy to be one of them.&lt;/p&gt;

&lt;p&gt;In the web development course, I hope to deepen my understanding of the areas I have studied on my own　and want to catch up on new technologies, as well as collaborate and grow together with my classmates from different backgrounds. I also want to improve my communication skills in addition to my coding and design skills, as I believe that cooperation is necessary to become a good engineer.&lt;/p&gt;

&lt;p&gt;Aside from web development, I like eating, jogging, collecting sounds to make music, and watching Cirque du Soleil shows. Since Canada has people from various cultures, rich nature, and Quebec, the birthplace of Cirque du Soleil, I would like to enjoy experiences that can only be had in Canada!　&lt;br&gt;
(It would be super fun to mix what I like and web development to create something!)&lt;/p&gt;

&lt;p&gt;I know there will be many challenges in becoming a front-end engineer, but I will work towards my goal and enjoy learning! I will be posting on my blog about the traces of trial and error and what I have learned, so please watch my progress :)&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--odgloRb2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77mg034zaa12noq2vwrc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--odgloRb2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77mg034zaa12noq2vwrc.png" alt="photo of the summit of a mountain" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>motivation</category>
      <category>firstpost</category>
    </item>
  </channel>
</rss>
