<?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: jjung99</title>
    <description>The latest articles on DEV Community by jjung99 (@jjung99).</description>
    <link>https://dev.to/jjung99</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%2F701223%2F14d61d5f-8ebe-4be1-8198-1a9e70229dc0.png</url>
      <title>DEV Community: jjung99</title>
      <link>https://dev.to/jjung99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jjung99"/>
    <language>en</language>
    <item>
      <title>Getting to know about Docusaurus
</title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Fri, 29 Oct 2021 14:21:08 +0000</pubDate>
      <link>https://dev.to/jjung99/getting-to-know-about-docusaurus-3nda</link>
      <guid>https://dev.to/jjung99/getting-to-know-about-docusaurus-3nda</guid>
      <description>&lt;h2&gt;
  
  
  What is &lt;a href="https://docusaurus.io/blog/2017/12/14/introducing-docusaurus"&gt;docusaurus&lt;/a&gt;?
&lt;/h2&gt;

&lt;p&gt;It is a react-based tool designed to make it easier for users to post documentation websites. In other words, basic website styles, forms, and simple document navigation are handy tools because they are parts that you do not need to take care of.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to set it up?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="http://https://docusaurus.io/docs/installation"&gt;The installation&lt;/a&gt; for this project is very simple.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First,&lt;/strong&gt; create a folder to store this project and type the following instructions using the desired tool.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx create-docusaurus@latest [name] [template]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then another folder which is "name" is created, and various files are created in it. They look like the file tree below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;my-website
├-- blog
│ ├-- 2019-05-28-hola.md
│ ├-- 2019-05-29-hello-world.md
│ └-- 2020-05-30-welcome.md
├-- docs
│ ├-- doc1.md
│ ├-- doc2.md
│ ├-- doc3.md
│ └-- mdx.md
├-- src
│ ├-- css
│ │ └-- custom.css
│ └-- pages
│ ├-- styles.module.css
│ └-- index.js
├-- static
│ └-- img
├-- docusaurus.config.js
├-- package.json
├-- README.md
├-- sidebars.js
└-- yarn.lock
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Next&lt;/strong&gt;, enter the folder and run the command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run start 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn run start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After confirming that the program is successfully running, you can check the program at &lt;a href="http://localhost:3000"&gt;http://localhost:3000&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  feature I copied from Docusaurus and why
&lt;/h3&gt;

&lt;p&gt;I liked the style part of this project the most because I thought that the style of the program I created was not much different from the document's style. So, it did not have a website advantage. In particular, it was interesting to see the change in website style with dark and bright themes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Plan to implement a new feature from docusaurus to &lt;a href="https://github.com/jjung99/a1-ssg"&gt;my SSG&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;If I could apply this nice feature right into my project, there would be nothing better than that, but as of now, I have to go step by step with what is possible. So as a first step, we received a parameter called theme and planned to change the background colour based on the theme. And the way I did it was as similar as other parameters.&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="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;t&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="na"&gt;alias&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;theme&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;describe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;css theme&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;string&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I added the style tag in my html generator format like below,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;   &lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
    &lt;span class="nc"&gt;.container&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;70%&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="err"&gt;theme&lt;/span&gt; &lt;span class="err"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="err"&gt;getThemeStyle(theme)&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and I added a simple function for the theme.&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;getThemeStyle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;theme&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;theme&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;dark&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; 
    &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;`body {background-color: black; color: white;}`&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`body {background-color: white; color: black;}`&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;By doing this, this feature wasn't completed. This step is just a prototype which I could do for now, and it needs to be improved step by step.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;a href="https://github.com/jjung99/a1-ssg/issues/15"&gt;Next steps&lt;/a&gt; for the feature
&lt;/h3&gt;

&lt;p&gt;In the next step, we will focus on more detailed changes depending on the background and further implement background changes using buttons in the domain.&lt;/p&gt;

</description>
      <category>docusaurus</category>
      <category>react</category>
      <category>ssg</category>
    </item>
    <item>
      <title>Stepping into the real open source by first contribution</title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Fri, 22 Oct 2021 07:19:19 +0000</pubDate>
      <link>https://dev.to/jjung99/stepping-into-the-real-open-source-by-first-contribution-bac</link>
      <guid>https://dev.to/jjung99/stepping-into-the-real-open-source-by-first-contribution-bac</guid>
      <description>&lt;p&gt;Through Github, I contributed to correcting typos in the open-source world for the first time!&lt;/p&gt;

&lt;h2&gt;
  
  
  what was the project about?
&lt;/h2&gt;

&lt;p&gt;The name of the project is &lt;a href="https://github.com/taosdata/TDengine"&gt;TDEngine&lt;/a&gt;. &lt;a href="https://github.com/taosdata/TDengine"&gt;TDEngine&lt;/a&gt; is mostly written with C and python and it is an open-source big data platform that helps devices that need big data such as IoT, Connected Cars, Application Monitoring, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  what are the steps for solving &lt;a href="https://github.com/taosdata/TDengine/issues/8297"&gt;the issue&lt;/a&gt;?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;First of all&lt;/strong&gt;, I commented on the issue page,&lt;br&gt;
asking if I can be assigned this issue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next&lt;/strong&gt;, Once I got the answer from the contributor, I forked it and git-cloned it. And then, I looked for the exact file I needed to fix for this issue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Finally&lt;/strong&gt;, I found the file and it was about a message typo as it was mentioned at the issue. It should be "press," but it was "presss" with an extra "s".&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"presss any key to exit&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, I fixed that part very quickly and fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  what did I learn from this?
&lt;/h2&gt;

&lt;p&gt;I haven't learned much about this issue in terms of programming. But obviously, this contribution informed me about the world of open source. It has helped ease fear by revealing that all issues are not as tricky as I expected but as easy as I did not expect. Also, communicating with a contributor or maintainer was a new experience for me. Although solving this issue was not a difficult task, I was amazed by the contributor's thank-you, and souvenirs offer. I was satisfied and fulfilled to think that I had helped someone and some project. Although not all issues are this easy, I believe that my contribution through this issue will serve as a good stepping stone for future open source contributions for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My pull request:&lt;/strong&gt; &lt;a href="https://github.com/taosdata/TDengine/pull/8300"&gt;&lt;em&gt;PR8300&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>firstcontribution</category>
      <category>opensource</category>
      <category>github</category>
    </item>
    <item>
      <title>Improving Code through Refactoring</title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Sat, 16 Oct 2021 01:59:54 +0000</pubDate>
      <link>https://dev.to/jjung99/improving-code-through-refactoring-58p9</link>
      <guid>https://dev.to/jjung99/improving-code-through-refactoring-58p9</guid>
      <description>&lt;h2&gt;
  
  
  For code improvements, I focused on the following points.
&lt;/h2&gt;

&lt;h4&gt;
  
  
  1. Separate files according to functional criteria.
&lt;/h4&gt;

&lt;p&gt;I divided the code related to HTML generation and the code related to the command line, split it into two files, and put it in a util folder. There was one error in this part, but it was removed by adding the following codes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;command.js&lt;/strong&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;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;getArgs&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;html.js&lt;/strong&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;module&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;exports&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;isKeyInObject&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nx"&gt;HTMLgenerator&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;index.js&lt;/strong&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;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;getArgs&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./util/command&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;isKeyInObject&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;HTMLgenerator&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./util/html&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  2. In each divided file, unnecessary code is removed and structurally modified to make it easier to read.
&lt;/h4&gt;

&lt;p&gt;In my judgment, there were many unnecessary if statements, so I removed them. I removed them because I think it would be better if it showed the error message. Through the first and second processes, I increased the readability of my project.&lt;/p&gt;

&lt;p&gt;The part I removed in index.js&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="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;flags&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;inputFlag&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                  &lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;input&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;test/The Naval Treaty.txt&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
                  &lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;i&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;test/The Naval Treaty.txt&lt;/span&gt;&lt;span class="dl"&gt;"&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;flags&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;langFlag&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                      &lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;lang&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;english&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
                      &lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;l&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;english&lt;/span&gt;&lt;span class="dl"&gt;"&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;flags&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;outputFlag&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                          &lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;output&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;dist&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
                          &lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;o&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;dist&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
                          &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  3. Add the necessary parts due to the nature of the code function.
&lt;/h4&gt;

&lt;p&gt;I have not previously added a -o, i.e. result value option. Since the output option was in the -config option, I decided that it was also necessary for the command line option and made it work by modifying the code. In addition, I also updated the README.md file according to the updates.&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;output&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt; &lt;span class="p"&gt;??&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;dist&lt;/span&gt;&lt;span class="dl"&gt;'&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="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;existsSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;mkdirSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;promises&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;writeFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;filename&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;.html`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;getHTML&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;filename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;html&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I committed to each of the above processes. And when I pushed it, there was a git error. Because among the codes I committed, there were overlapping code lines. So I made a manual correction after using fetch, pull git commands.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Adding new feature using remotes</title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Sat, 09 Oct 2021 02:51:17 +0000</pubDate>
      <link>https://dev.to/jjung99/adding-new-feature-using-remotes-598a</link>
      <guid>https://dev.to/jjung99/adding-new-feature-using-remotes-598a</guid>
      <description>&lt;p&gt;I added a new feature from the &lt;a href="https://github.com/jjung99/suhheeKim_OSD_release0.1_create_ssg/tree/issue-24"&gt;new branch&lt;/a&gt; in the cloned repository in this lab. And I updated it to the remote repo using the git merge and push function.&lt;/p&gt;

&lt;h4&gt;
  
  
  The newly added functions are as follows.
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Using the new command option -c and -config, receive the JSON file as an argument.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Import data corresponding to the SSG option from the JSON file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Applying the imported data to the proper value or function (e.g., input, stylesheet etc.)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;​&lt;br&gt;
The following is an example of the code I updated. There were many if statements in the code, so the structure was more complicated than I contributed last time. &lt;/p&gt;

&lt;p&gt;First of all, I added json file and put data in it.&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;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;readFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;TextArr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./Texts/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;concat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;filename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;TextArr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;filenum&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;TextArr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;filenum&lt;/span&gt;&lt;span class="p"&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="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./Texts/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;concat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;TextArr&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;filenum&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;.&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Text&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The JSON file was created in the Test directory because the file was read from the directory "Texts".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--I8DJOLKn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pgf12900caj8p3ubo9t2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--I8DJOLKn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pgf12900caj8p3ubo9t2.png" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Secondly, I added if statements when it accepts -config command option and few other code lines accordingly.&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="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;options&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;config&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
                &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;json&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;args&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&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;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt; &lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
                &lt;span class="nx"&gt;jsonData&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`../&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;json&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
                &lt;span class="nx"&gt;filename&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;input&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
                &lt;span class="nx"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;jsonData&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;stylesheet&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;Finally, I pushed it into the working branch of my fork repository. And I reviewed my pull request as well.&lt;/p&gt;

&lt;p&gt;I was confused about the concept of &lt;a href="https://git-scm.com/docs/git-remote"&gt;git remote&lt;/a&gt; and the clear difference between git &lt;a href="https://www.atlassian.com/git/tutorials/using-branches/git-merge"&gt;merge&lt;/a&gt; and &lt;a href="https://www.atlassian.com/git/tutorials/syncing/git-fetch"&gt;fetch&lt;/a&gt;. However, working on git and trying things after watching the git lecture, I know git fetch is for reading and merge is for updating the code. I can't say I am comfortable using git yet, but I definitely understood that it would be so handy once I practice it a lot.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Merge my new feature branches</title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Mon, 04 Oct 2021 16:13:27 +0000</pubDate>
      <link>https://dev.to/jjung99/adding-new-features-401f</link>
      <guid>https://dev.to/jjung99/adding-new-features-401f</guid>
      <description>&lt;p&gt;This week I updated my SSG, adding two new features in different branches. Then, I successfully merged them into my master branch using git commands.&lt;/p&gt;

&lt;h2&gt;
  
  
  New Features
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The first feature&lt;/strong&gt; I updated is the optional command for generating the &lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang"&gt;lang&lt;/a&gt; attribute on the root &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; element. I simply added one more option for command line function as below example.&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="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;option&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;l&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="na"&gt;alias&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;lang&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="na"&gt;describe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;lang attribute for html&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;string&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
        &lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The second feature&lt;/strong&gt; I updated is a &lt;a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr"&gt;horizontal rule&lt;/a&gt; in Markdown. So, &lt;code&gt;---&lt;/code&gt; in the markdown file should be converted to &lt;code&gt;&amp;lt;hr&amp;gt;&lt;/code&gt; tag. I added a if-statement for &lt;code&gt;---&lt;/code&gt; inside of the if-statement when file type is markdown. The code block looks like this.&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="k"&gt;else&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;e&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;---&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  
         &lt;span class="nx"&gt;html&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="s2"&gt;`&amp;lt;hr&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;deli&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;    
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I know these new features are considerably easy, but  I ran into some issues when splitting the sentences. The problem was new line comes out differently depending on what system you use, like window32, ubuntu, etc. So, I changed few lines for the delimiters, something like this.&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;deli&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;platform&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;win32&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\r\n&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of using&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;resArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sr"&gt;/n/&lt;/span&gt;&lt;span class="nx"&gt;n&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I use&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;resArr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;deli&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As a result, all the extra &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tags are gone, and the output looks good!&lt;/p&gt;

&lt;h2&gt;
  
  
  Git merge and branch
&lt;/h2&gt;

&lt;p&gt;I have experience with this git feature. In one of my other classes, we submitted our assignments through git. My professor briefly explained how the git works and encouraged us to use a branch to avoid unrestorable updates and changes.&lt;/p&gt;

&lt;p&gt;Making branches and working in that specific branches was the same process as I have been doing. The command is,&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="nv"&gt;$ &lt;/span&gt;git checkout &lt;span class="nt"&gt;-b&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;branch name]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And it means making a branch that's named [branch name] and going into that branch.&lt;/p&gt;

&lt;p&gt;However, I made an extra commit, but I wanted to remove it. Because it could give me confusion about which commit is new or what I want, and I only need one. How I solved this problem was the reset command.&lt;/p&gt;

&lt;p&gt;If you enter:&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="nv"&gt;$ &lt;/span&gt;git log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It shows you a history of everything that happened to the repository. You can see there are hash codes for your commit. So, I copied that and entered:&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="nv"&gt;$ &lt;/span&gt;git reset &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;hash &lt;/span&gt;code]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, I could finally add my new files again, go to the master branch, and merge my branches. The command is :&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="nv"&gt;$ &lt;/span&gt;git merge &lt;span class="o"&gt;[&lt;/span&gt;branch name]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Even though I edited the same file, index.js, the parts that I touched in each branch were different. So, I didn't get any errors, but it can give you an error message if it is overlapped. So, be aware of that!&lt;/p&gt;

&lt;p&gt;I am glad that I am understanding and learning about git. I know there must be more good features about git, and I can't wait to learn and use them!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>My first contribution  </title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Fri, 24 Sep 2021 20:52:50 +0000</pubDate>
      <link>https://dev.to/jjung99/my-first-contribution-1jp4</link>
      <guid>https://dev.to/jjung99/my-first-contribution-1jp4</guid>
      <description>&lt;p&gt;This week, for the first time, I contributed to another project for code update. It was about allowing markdown file and turning it into HTML regarding their syntax.&lt;/p&gt;

&lt;p&gt;First, I created a new issue to let the project's owner know that I updated his code. After that, I created a new branch with my issue number and did &lt;a href="https://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository"&gt;clone&lt;/a&gt; my &lt;a href="https://github.com/DerekJxy/My-First-SSG.git"&gt;partner's git repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Second, I took a look at the code. For me, the code was easy to read and understand. It wasn't a complicated process, but some lines came along with the new line when I sliced the line. So it took a while to realize what the problem was and solve it. Plus, I had forgotten so many javascript syntax and functions I struggled a little bit. But, other than that, his code was clear, and I just texted him when I had any confusion. What I did was pretty much using his code snap and added if-statements for the file type and feature of markdown heading syntax. &lt;/p&gt;

&lt;p&gt;Finally, I &lt;a href="https://git-scm.com/docs/git-add"&gt;added&lt;/a&gt; all the files that I made changes, &lt;a href="https://git-scm.com/docs/git-commit"&gt;committed&lt;/a&gt; and &lt;a href="https://github.com/git-guides/git-push"&gt;pushed&lt;/a&gt; to my new branch, &lt;a href="https://github.com/jjung99/My-First-SSG.git"&gt;issue-19&lt;/a&gt;. The process of git was smooth. I didn't have trouble with git throughout this lab. I think the &lt;a href="https://www.youtube.com/watch?v=xHR_owLgiEU"&gt;week-2 lecture &lt;/a&gt;  helped me understand how git works and how to use it appropriately (effective use of git)&lt;/p&gt;

&lt;p&gt;When my pull request was merged, I felt good and achieved something from what I contributed. Throughout this lab, everything related to git wasn't a problem. I felt more confident and comfortable using git now, although I wanted to avoid it a month ago. &lt;/p&gt;

</description>
      <category>opensource</category>
      <category>github</category>
      <category>contribution</category>
    </item>
    <item>
      <title>Getting to know about Github</title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Thu, 23 Sep 2021 00:35:42 +0000</pubDate>
      <link>https://dev.to/jjung99/getting-to-know-about-github-48bj</link>
      <guid>https://dev.to/jjung99/getting-to-know-about-github-48bj</guid>
      <description>&lt;p&gt;Throughout this week, I feel like I am learning what GitHub can do and how to use it properly. I know the part that I have learned is like a tip of an iceberg, but it is a start.&lt;/p&gt;

&lt;p&gt;This week, I tested my friend's code and gave her feedback. I have known her quite a while. I know she is really good at programming and enjoys coding.  I knew she already had a partner, but since my professor said okay to review someone who has a partner, I asked her, and she said okay. &lt;/p&gt;

&lt;p&gt;When I tested her code and reviewed it, I realized that it was readme was more critical than I thought. I needed it for testing her code and knowing what features she had since we had choices for the optional features. &lt;br&gt;
One of my findings in her project was also about the readme file. It might look like a tiny mistake but, one missing space didn't let me run her entire project. &lt;/p&gt;

&lt;p&gt;The biggest thing I learned this week was how to use feathers and the usefulness of the functions in the Github. Even though it had been more than a year since I encountered the Github, I didn't really understand much about it. I also came to realize how important readme files are when I meet other people's codes.&lt;/p&gt;

&lt;p&gt;what I reviewed:&lt;br&gt;
&lt;a href="https://github.com/suhhee1011/suhheeKim_OSD_release0.1_create_ssg/issues/17"&gt;https://github.com/suhhee1011/suhheeKim_OSD_release0.1_create_ssg/issues/17&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>opensourse</category>
      <category>issue</category>
      <category>testing</category>
    </item>
    <item>
      <title>My First Open-Source Project With SSG </title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Sat, 18 Sep 2021 05:27:09 +0000</pubDate>
      <link>https://dev.to/jjung99/my-first-open-source-project-with-ssg-3g0g</link>
      <guid>https://dev.to/jjung99/my-first-open-source-project-with-ssg-3g0g</guid>
      <description>&lt;h2&gt;
  
  
  SSG
&lt;/h2&gt;

&lt;p&gt;What is SSG? It is a acronym of Static Site Generator. It simply creates a static site that doesn't really need to be updated. So, I built a program that generates a html file that is created with a text file. Here is how it works.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to run
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;git clone [git address]&lt;/li&gt;
&lt;li&gt;redirect to a1-gss and enter "npm i"&lt;/li&gt;
&lt;li&gt;Open any terminal and Enter "npm i" and "node . -i [filename]"
You'll see the new "dist" folder and a new HTML file that has a same name as the text file.&lt;/li&gt;
&lt;li&gt;Now, let's try the folder. Enter "node . -i [foldername]"
You can also try other flags like -v, -h. &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Commend-line flag&lt;/li&gt;
&lt;li&gt;Identify title and content in a text file&lt;/li&gt;
&lt;li&gt;Identify input weather if it is a file or folder&lt;/li&gt;
&lt;li&gt;Generate HTML file(s) with a folder where new HTML file(s) is.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reflection
&lt;/h2&gt;

&lt;p&gt;The first assignment of the open-source class is done! This task was about generating HTML file(s) from a text file(s). Unlike previous assignments, where instructions were mainly specific, I was slightly confused because I am not so used to this concept of assignment that is pretty flexible. I was lost at first in what language to choose and where to start. However, through this assignment, I spent a lot of time looking at many open sources and thinking about combining them with my code. In addition, by using a new library related to the command line, I felt that I was developing the skills I really needed in the working environment and taking a step closer to this field rather than doing a set school task.&lt;/p&gt;

&lt;h2&gt;
  
  
  License
&lt;/h2&gt;

&lt;h5&gt;
  
  
  MIT
&lt;/h5&gt;

&lt;p&gt;&lt;a href="https://github.com/jjung99/a1-ssg.git"&gt;My Github Repo&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>node</category>
      <category>javascript</category>
      <category>ssg</category>
    </item>
    <item>
      <title>My introduction</title>
      <dc:creator>jjung99</dc:creator>
      <pubDate>Fri, 10 Sep 2021 16:37:01 +0000</pubDate>
      <link>https://dev.to/jjung99/my-introduction-loa</link>
      <guid>https://dev.to/jjung99/my-introduction-loa</guid>
      <description>&lt;p&gt;Hello! My name is Jiyun Jung. I am in my 5th semester of CPAC(Computer programming and analysis) at Seneca College. &lt;br&gt;
I am from South Korea, but I am currently living in Toronto right now. It is challenging for everyone because of covid-19, but I feel grateful to continue my study remotely. This pandemic has shown me the advantages of this career as the only tools that I would require are a computer and the internet. &lt;/p&gt;

&lt;p&gt;I took OSD600 class because I wanted to improve my ability to use the tools of open source development. There are a lot of advantages to using open source, but what attracted me the most was the software community. I want to learn, collaborate and share my thoughts with the community.&lt;/p&gt;

&lt;p&gt;At the end of OSD600 class, I hope to use open-source tools appropriately by learning the licensing and copyright laws regarding software. I don't know what specific project I want to work on, but I want to work on web development. &lt;br&gt;
I am excited to learn how to break large chunks of code into smaller codes and debug them throughout this class so that i will be more comfortable handling open source by myself later. Plus, I know that I need to manage my time and push myself, so I am looking for a better myself when managing and organizing my schedule.&lt;/p&gt;

&lt;p&gt;The GitHub trending repo that I researched and attracted me was short javascript code snippets. The title of "30 seconds of code" peaked my interest as soon as I saw it, and I am always interested in javascript, so that is why I chose it. When I looked into their website, I found many helpful javascript snippets that I can use, not only javascript but also react hooks, python, git, etc. &lt;br&gt;
This GitHub threading repo is about helping programmers code faster and easier because they provide pieces of the shortcode that can be used for a particular purpose, such as Math, Algorithm and String, etc. As a student still learning to program, I think this would help me when I struggle with coding by learning different ways of coding. &lt;br&gt;
&lt;a href="https://www.30secondsofcode.org/"&gt;Here is the 30 seconds of code link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>osd600</category>
      <category>programming</category>
      <category>firstpost</category>
    </item>
  </channel>
</rss>
