<?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: Barshon</title>
    <description>The latest articles on DEV Community by Barshon (@barshonwebdev).</description>
    <link>https://dev.to/barshonwebdev</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%2F778962%2F001e0487-a617-49af-b743-9b2357e53bd0.jpeg</url>
      <title>DEV Community: Barshon</title>
      <link>https://dev.to/barshonwebdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/barshonwebdev"/>
    <language>en</language>
    <item>
      <title>CRUD</title>
      <dc:creator>Barshon</dc:creator>
      <pubDate>Thu, 23 Dec 2021 15:45:30 +0000</pubDate>
      <link>https://dev.to/barshonwebdev/crud-72e</link>
      <guid>https://dev.to/barshonwebdev/crud-72e</guid>
      <description>&lt;p&gt;CRUD, the word is denoting four core operations when it comes to data management in databases. The C stands for create, the R stands for read, the U stands for update and the D stands for delete. So, CRUD operations are fundamental operations of database data management involving create,read,update and delete. &lt;/p&gt;

&lt;p&gt;For instance, if we talk about MongoDB, like any other database, the MongoDB also requires and supports all the crud operations. I'll explain briefly on every crud operations in the MongoDB. &lt;/p&gt;

&lt;p&gt;First, the create operation. The create operation (also called the insert operation) is the operation in MongoDB where we create a document and add it to a certain collection in the database. This is the first and foremost operation in the crud.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.collection.insertOne() 
db.collection.insertMany()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Then comes the read operation. The read operation in a database is based on the idea that when an user query is launched, certain data should be able to be accessed (read) and show accordingly. For this purpose, the read operation is needed in the database. &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.collection.find()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;In the third scenario, comes the update operation. Often it needs to update the data according to new circumstance and situations. For this case, databases need to support the update operation. MongoDB also supports the update operation. &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.collection.updateOne() 
db.collection.updateMany() 
db.collection.replaceOne()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Last comes the final of the four operations, the delete operation. It just so happens that delete is a very core operation when it comes to database because often it might be needed to delete the existing data in the database. &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.collection.deleteOne() 
db.collection.deleteMany() 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;So, that covers up all the crud operations in a database. This is based on MongoDB but crud is supported by every databases out there.&lt;/p&gt;

</description>
      <category>database</category>
      <category>server</category>
      <category>javascript</category>
      <category>mongodb</category>
    </item>
    <item>
      <title>React JSX</title>
      <dc:creator>Barshon</dc:creator>
      <pubDate>Wed, 22 Dec 2021 15:05:25 +0000</pubDate>
      <link>https://dev.to/barshonwebdev/react-jsx-1paf</link>
      <guid>https://dev.to/barshonwebdev/react-jsx-1paf</guid>
      <description>&lt;p&gt;In react, there comes a point when a new developer might ask, where does HTML play a part in building an application using react? Well, writing html is not a viable option in react. THen how can we build a web page if there is no html? &lt;/p&gt;

&lt;p&gt;The answer is simple, using JSX. JSX stands for javascript xml . Javascript xml is used as an alternative of html in a react application. JSX is almost like html except that it's not. The syntax and everything is just like html, which means writing jsx and writing html is almost no different. The difference comes in parsing them. Html is directly parsed by the browser whereas jsx is parsed and converted into javascript first, and then it is counted as javascript by the parser. &lt;/p&gt;

&lt;p&gt;In earlier days, the babel transpiler was needed for this parsing task of xml, but nowadays in react it is done easily using the babel plugin so that external babel transpiler is no longer needed. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
